-
Addlight scripting question
I am trying to modify an existing script from http://www.motionscript.com such that lights are automatically added for each vertex of a selected mask. I got this to work.
However, I am struggling with the Addlight method. I am using the official scripting guide, but I cannot find the answers in there.1. I don’t understand why the addlight only has an x and y coordinate, why isn’t there a z-coordinate? it seems that I can set it later with myLightLayer.position.setValue([x,y,z]);
2. How do I tell the script that I want either a pointlight or a spotlight?
3. How do I use the Setvalue method to change the point of interest? (I tried myLightLayer.anchorpoint.setValue([x,y, 0]); , but this does not seem to work.
4. I also use Lux, and if I use the default orientation of [0,0,0] for each light there is a visible square solid over every single light, I resolved it by changing the orientation to [0,0.1,0], but why do I see a solid over my lights, anyone seen this problem as well?
Thanks,
Rutger