Copy link to clipboard
here is my code.
var myComp = app.project.activeItem;
var preCompLayer = myComp.selectedLayers;
i have a simple text 3d layer animating out of the screen view, now how do i use the expression on selected layer so the camera follows the text layer
Expressions are added via the property medhods and the respective subset for expressions. You may want to read the scripting documentation or study other people's scripts.