Using this example code:
I created the following test code where I add a light to my second scene (composition) in my project to create a shadow:
var s2light1 = scene2.layers.addLight("s2light1", [1143,121]);
This works perfectly. But I now also want to set the 3rd (Z) value for the centerPoint in Extendscript (as is possible in After Effects).
However according to the After Effects CS6 scripting guide it seems you can only set the X and Y values: "The center of the new camera, a floating-point array [x, y]. This is used to set the initial x and y values of the new camera’s Point of Interest property. The z value is set to 0." Is there another approach or work around to set the Z-value for the center point in Extendscript which I can try?
[ email signature removed - see http://forums.adobe.com/docs/DOC-3731 ]
You can set up everything afterwards using:
I can't tell why you cannot set Z upon creation. But the behaviour is the same as in the user interface:
the light is created at a default height (that depends on comp size and maybe other things), then you can change things.