-
Get Transform-settings on selected layer in comp.
Hi! I’m trying to extract information from a selecte precomp in the timeline.
Right now the script looks like this:
var activeItem = app.project.activeItem; //Selected Item
var selectedLayer = activeItem.selectedLayers[0]; //Selected Layer
var maincompHeight = selectedLayer.height; //Maincomps height
var maincompWidth = selectedLayer.width; //Maincomps width/*Alert-test*/
alert (selectedLayer.duration);
so I easy can see if it’s working.
I can get height and width without any problems but I need to get the duration, pixelaspect and framerate but I’m not possible to do it with my script at the moment. I only get “undefined”.