Change Ambient color to black to all materials in scene

Hi I'm new to 3ds Max, and have multiple scenes and materials with variable colors for ambient.

I believe I need to write a script to change the Ambient in the Blinn Basic Parameters to black, for all materials in the scene.

I have tried looking on here for a script, but I couldn't find one.

Can someone please help point me in the right direction?

Thanks!

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
sable806's picture

Script

You can use this loop to cycle trough all scene materials and change ambiant to black, script is ready to use.

for i in scenematerials do
(
	i.adLock = false
	i.ambient = color 0 0 0
)

This will work if you only have standard materials, if you have other materials in scene, you would have to check if the material has ambiant parameters or not.

Feel free to ask if you need more, this hsould work.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.