I'm trying to create a camera with a script, but I need the camera Auto-Orientation property to be off. So far the only way I found is this:
Code: Select all
var myCamera = app.project.activeItem.layers.addCamera("theCamera", [0,0]);
myCamera.autoOrient=3612;
In CS6 it is 3612 but in CC2015 I believe is 4012.
Is there a better way to create a camera with Auto-Orientation off?
If not, could you tell me the ID number in your version of After Effects? Just select a camera and run this code:
Code: Select all
var myCameraOrient = app.project.activeItem.selectedLayers[0].autoOrient;
alert(myCameraOrient);
3612 : Off
3613 : Orient along Path
3614 : Orient Towards point of interest
Thank you for your help!
Eddie