Hi all,
i need a MaxScript, which searches all used coronaMtl, changes ReflectIOR to 1.52 and all Falloff Maps Type to Perpendicular/Parallel.
This is what i have so far:
coronaMats = getClassInstances CoronaMtl
for mat in coronaMats do
(
mat.fresnelIor = 1.52
mat.texmapReflect.type = 1
)
It works vor the IOR, but if after the Reflect Falloff map is something else (like CollerCorrection) i get an error...
what can i do/add?
Thank you!
Solved! Go to Solution.
Solved by Swordslayer. Go to Solution.
Replace the line where you're setting falloff properties with
if isKindOf mat.texmapReflect falloff do mat.texmapReflect.type = 1
Doesnt seam to be the Solution 😞
There is no error message, if i use your code, but it is not changing the falloff map type...
I guess this time it is, because of the ColorMap at the end?
Here is an Image of my TestMaterial
Oh, so you want to change it anywhere in the mat hierarchy? You can always do it like this:
(getClassInstances Falloff target:mat).type = 1
-- or (getClassInstances Falloff target:mat.texmapReflect).type = 1 if you want to limit it to that one slot
Can't find what you're looking for? Ask the community or share your knowledge.