-
AE scripting – identify a two-node camera
Having some issues here with my loop to identify a two-node camera in my comp. I think the main issue is I don’t know how to find a two-node camera. Just A camera. Currently this will correctly identify a camera, but will continue to announce that its a two-node camera, even if its actually a one-node. Any suggestions would be appreciated.
var proj = app.project;
var theComp = proj.activeItem;
var layers = theComp.layers;
var matchingLayers = new Array();
var layer;for (var i = 1; i <= layers.length; i++){
layer = layers[i];// Check for the particular layer type here:
if (layer.property("Zoom") !== null){
alert('Camera Found');
matchingLayers[matchingLayers.length] = layer;
if(layer.property("Point of Interest") !== null){
alert('Two-node camera');
}
}
}