ScriptSpot is a diverse online community of artists and developers who come together to find and share scripts that empower their creativity with 3ds Max. Our users come from all parts of the world and work in everything from visual effects to gaming, architecture, students or hobbyists.
add me to your skype! My skype name is also artrender.info
I need to go out, but when I come, I will ask you about payment methods!
Thank you, you really deserve money for your knowledge!
That's what happens when I drop a single argument.. oh well, another iteration:
(
struct matDef (mat, path)
local getSubmats, subMats = #()
fn capitalizeFirst str =
toUpper str[1] + subString str 2 -1
fn formatName mat index: =
if isKindOf mat TextureMap OR index == unsupplied then
capitalizeFirst ((classOf mat) as string) + "\\"else(substituteString (getSubTexmapSlotName mat index)" map""") + "\\"
fn getSubmatsRecurse mat matInst path:"" =
for propName in (getPropNames mat)do(
local prop = getProperty mat propname
ifsuperClassOf prop == Material then
getSubmats prop path:path
elseifclassOf prop == ArrayParameter dofor sub in prop where superClassOf sub == Material do
getSubmats sub path:path
)
fn getSubmats mat path:"" =
(
local matInst = matDef mat:mat path:path
append subMats matInst
getSubmatsRecurse mat matInst path:(path + formatName mat)
subMats
)
fn recurseMat mat path:"" =
for i = 1 to (getNumSubTexmaps mat)
where (local map = getSubTexmap mat i)!= undefined doif getNumSubTexmaps map > 0 then
recurseMat map path:(path + formatName mat index:i)elseif isKindOf map BitmapTexture do(format"Texture: %\n" map.filename
format(path + formatName mat index:i + "\n\n"))
local current_mtl = mEdit.getCurMtl()
local subMatInsts = getSubmats current_mtl
format"\nBase material: %\n\n"(classOf current_mtl)for matInst in subMatInsts do
recurseMat matInst.mat path:("MAP TREE: " + matInst.path))
but I still can't figure out how to put color corect instead of "Map"
It worked in your second script that you wrote at 1st page. - here:
(
local bitmaps = getClassInstances BitmapTexture
fn capitalizeFirst str =
(
str[1] = toUpper str[1]
str
)
fn getTopMats sub =
for item in refs.dependents sub
where isKindOf item Material collect item
fn recurseMats mats map previous:#() =
for mat in mats dofor i = 1 to (getNumSubTexmaps mat)
where getSubTexmap mat i == map do(
local topMats = getTopMats mat
if topMats.count > 0 then
recurseMats topMats mat previous:(join #(capitalizeFirst ((classOf mat) as string) + "/" + getSubTexmapSlotName mat i) previous)else(format"\tSlot name: %"(substituteString (getSubTexmapSlotName mat i)" map""")for each in previous doformat"/%" each
format"\n"))for bmp in bitmaps do(
local mats = getTopMats bmp
format"\nTexture: %\n" bmp.filename
recurseMats mats bmp
))
(
struct matDef (mat, path)
local getSubmats, subMats = #()
fn capitalizeFirst str =
toUpper str[1] + subString str 2 -1
fn formatName mat index: =
if isKindOf mat TextureMap OR index == unsupplied then
capitalizeFirst ((classOf mat) as string) + "\\"else(substituteString (getSubTexmapSlotName mat index)" map""") + "\\"
fn getSubmatsRecurse mat matInst path:"" =
for propName in (getPropNames mat)do(
local prop = getProperty mat propname
ifsuperClassOf prop == Material then
getSubmats prop path:path
elseifclassOf prop == ArrayParameter dofor sub in prop where superClassOf sub == Material do
getSubmats sub path:path
)
fn getSubmats mat path:"" =
(
local matInst = matDef mat:mat path:path
append subMats matInst
getSubmatsRecurse mat matInst path:(path + formatName mat)
subMats
)
fn recurseMat mat path:"" =
for i = 1 to (getNumSubTexmaps mat)
where (local map = getSubTexmap mat i)!= undefined doif getNumSubTexmaps map > 0 then
recurseMat map path:(path + formatName mat index:i)elseif isKindOf map BitmapTexture do(format"Texture: %\n" map.filename
format(path + formatName mat + "\n\n"))
local current_mtl = mEdit.getCurMtl()
local subMatInsts = getSubmats current_mtl
format"\nBase material: %\n\n"(classOf current_mtl)for matInst in subMatInsts do
recurseMat matInst.mat path:("MAP TREE: " + matInst.path))
I'm so glad that you helped me! HUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUGS! Finallllllllllyyyyyyyyyyyy! I will just try to exclude the word map and to put color corect inside
Comments
add me
add me to your skype! My skype name is also artrender.info
I need to go out, but when I come, I will ask you about payment methods!
Thank you, you really deserve money for your knowledge!
How much to pay!!!!!
I need instead of
Texture: \\S003\all\3d\maps\maps\6_3_9_D.jpg MAP TREE: Multimaterial\Blend\Multimaterial\Diffuse\Color_Correction\
only
Base material Multimaterial Texture: \\S003\all\3d\maps\maps\6_3_9_D.jpg MAP TREE: Blend\Multimaterial\VrayMtl\Diffuse\Color_Correction\
Everything else works fine!!!!
( struct matDef (mat,
Some of my scripts and MCGs :: 3ds Max SDK Intro for Scripters
That's what happens when I
That's what happens when I drop a single argument.. oh well, another iteration:
Some of my scripts and MCGs :: 3ds Max SDK Intro for Scripters
I want to make such a script:
smth like in image
for every ID it's texture paths with it's collor range in bg
I will pay
tell me how much!
Thx but smth missing
results:
in other vrayMtl diffuse, bump reflection etc
close to finish
I've excluded the word map inside "diffuse map" "bump map" etc,
the result:
Texture: \\S003\all\3d\maps\maps\6_3_9_D.jpg MAP TREE: Multimaterial\Blend\Multimaterial\Diffuse\Map\
but I still can't figure out how to put color corect instead of "Map"
It worked in your second script that you wrote at 1st page. - here:
Yeah, my fault: ( struct
Yeah, my fault:
Some of my scripts and MCGs :: 3ds Max SDK Intro for Scripters
hurraaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaay, yay
I'm so glad that you helped me! HUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUGS! Finallllllllllyyyyyyyyyyyy! I will just try to exclude the word map and to put color corect inside
Texture: \\S003\all\3d\maps\maps\6_3_9_D.jpg MAP TREE: Multimaterial\Blend\Multimaterial\Diffuse map\Map\
where diffuse map\Map\
has to be Diffuse\Color_corect
I'm not sure that I can but I will really try
but everything else works perfectly!
Thank you Swordslayer! I will give you this plugin that I'm making now, and your name will be there like a very GOOD supporter!