Notifications
Clear all

[Closed] Adjusting all material setting at once with maxscript

Hi guys…I have a problems adjusting my material iDs…which is too many.I had the problems when i want to adjust the entire reflection of my current project.Where i can find a script that i can adjust ( a spinner) all the material ids at once? Thank you.

2 Replies

That would depend on the type of material (standard, raytrace, etc…)
but for standard Materials and multisub with standard materials, you could try

mats=getClassInstances standard – Get all standard materials
for m in mats do m.reflectionMapAmount=50 – set reflection amount to 50

or for specific IDs (assuming multisub material)
mats=getClassInstances Multimaterial – Get all multisu materials
for m in mats do m[5].reflectionMapAmount=50 – Set all 5th (ID 5) Submaterials reflection to 50

:)Thanks, but i have a same question for animation…in maxscript how to made a little spinner that I can animate all the expressions (eg an engine revs) animate every single piece doing what they do? (Sorry for my english) thank you.