Notifications
Clear all

[Closed] Adjusting all maps?

I would like to write a script that would search the entire scene and look for a specific map type (lets use a mix map for example). I would like the script to then change one of the paramaters within all of those mix maps. Can someone please point me in the right direction to do this? I have looked through the maxscript help file, but I’m not exactly sure what paramaters I should be looking for.

Thanks,

Tim J

4 Replies

This will change the mix amount in all mix maps to 50:

mixArray = for i in (getClassInstances mix) collect i
 for i in mixArray do (i.mixAmount = 50)

Hope it helps

you could actually do it with one line:

for i in (getClassInstances mix) do (i.mixAmount = 50)

Awesome…Thanks Jon. Now let me throw you a curve.

How would you do the same thing with a scripted material? I’ve written a material called “Override” which extends a mix map. I’d like to now adjust parameters in all instances of my override material. Is this possible?

Thanks for your help!

Tim J

Ok…I’m a fool. I discovered why I was having trouble with getting this to work. It would help if I spelled things correctly. :rolleyes:

Its working now.

Tim J