Hi
I need a script that allows you to switch the set of properties to
and I managed to do each of the items, except for setting the color of the shadow:
"Vray_Matte_ShadowColor"
It's interesting that when you change the color of an object and run even an empty script, the shadow color returns to black.
Who faced such a problem and in what form should the code be presented for color change?
___
Here is the script itself:
fn ShadowPlane obj =
(
try(setUserProp obj "VRay_Matte_Enable" true)catch()
try(setUserProp obj "VRay_Matte_Alpha" -1.0)catch()
try(setUserProp obj "VRay_Matte_Shadows" true)catch()
try(setUserProp obj "VRay_Matte_ShadowAlpha" true)catch()
try(setUserProp obj "VRay_Matte_ShadowBrightness" 0.8)catch()
try(setUserProp obj "Vray_Matte_ShadowColor" [128 128 128])catch()
)
for n = 1 to objects.count do ShadowPlane objects[n]