Home Coding, Scripting, Shaders

Maxscript to Change base color map if it has a texture

Hi, I have a script that changes all base color in the scene, but I need to change base color only if it has bitmap assigned.
Can anybody help with this script

Here is the script
(
for each in sceneMaterials do 
(
if selection.count != 0 do
if classOf each == PhysicalMaterial then 
each.base_color = color 255 255 255 255
)



Thanks in advance.

Replies

Sign In or Register to comment.