PDA

View Full Version : lscript position and rotation not working



marklynn
10-09-2011, 11:42 AM
I'm using Lightwave 10.1

In layout, I created a simple lscript to add a light

AddSpotLight ("Blue_Light");
Position(-2,-2,-2);
Rotation(45,45,0);

The light is added, but the position and rotation values stay at 0.

I ran a 3rd party script to generate a 4 point light setup, and it worked fine except for position and rotation, which remained at 0.

Any suggestions??

Thanks

nickdigital
10-09-2011, 12:00 PM
Does Autokey need to be on?

marklynn
10-09-2011, 12:06 PM
Thanks much... that did the trick. I usually leave it off, so apparently all I have to do is find a way to enable it when the script runs, then turn it off.

:)

nickdigital
10-09-2011, 12:09 PM
Cool. If you can check to see if Autokey is on, you might want to put a condition check in. Some of the things in lscript are just toggles so you would just be toggling the existing state instead of actually turning it on or off.