Notifications
Clear all
[Closed] Linking VRaylights' power to a dummy's position
Sep 01, 2008 11:35 am
I have an array of VRayLights and i’d like to animate them somewhat like this:
if ( light.pos.y > Dummy.pos.y) {
light.power = 1200;
} else {
light.power = 0;
}
I don’t really know how to do this in practise. Should I make a maxscript, use the wire parameters window, make a Float script or something else?
Also, i’ve got 51 lights in total and it’d be nice if I didn’t have to apply the script to each light by hand. There’s only one dummy though.
1 Reply
Sep 01, 2008 11:35 am
somthing like this, since i’m not quite sure what you want:
for x in lights do –all light in the scene
(
if x.pos.y > $Dummy.pos.y then
(
x.multiplier = 1200
)
else
(
x.multiplier = 1.00
)
)