Accessing composite map color in standard material maxscript
Hi I'm new.
I'm trying to access and change the color of a specific composite map layer within the diffuse slot of a standard material.
Can anyone tell me where I am going wrong?
Thanks for any help
colorArray=#(red, green, blue, yellow)
rollout a "Random Shirt"
(
Button btn "Change Color"
on btn pressed do
(
selectedMaterial = $ material
selectedMaterial.diffuse.compositeTexture[2].diffuse = colorArray[random 1 colorArray.count]
)
)
createDialog a 200 300
Comments
.