Copy link to clipboard
Copied
Hi is it possible to create comp at the current comp and the marker on it to be on the current position of the timeline cursor?
See the section "Scripting Access to comp Markers" here : After Effects CC 2017 (14.0) New Scripting Functionality
As the thread title says, you'll need AE CC 2017, it wont work in previous versions.
Note: the current timeline cursor position can be accessed through : comp.time
Xavier
Copy link to clipboard
Copied
See the section "Scripting Access to comp Markers" here : After Effects CC 2017 (14.0) New Scripting Functionality
As the thread title says, you'll need AE CC 2017, it wont work in previous versions.
Note: the current timeline cursor position can be accessed through : comp.time
Xavier
Copy link to clipboard
Copied
Thank you Xavier for the fast response.
So, maybe it's trivial question, but I'm new at extendscript,
how can I snap the beginning of comp to a current timeline cursor in the older versions of AE?
I couldn't find the answer on the web.
Copy link to clipboard
Copied
Sorry, i dont get it. What do you mean by "snap the beginning of a comp to cursor".
Copy link to clipboard
Copied
Hi Xavier,
When my script create comp in the current comp,
is it possible to place it on the timeline cursor position and not at the beginning of current comp?
Copy link to clipboard
Copied
It works like for any footage:
var comp = app.project.item(1);
var footage = app.project.item(2);
var layer = comp.layers.add(footage);
layer.startTime = comp.time;
footage can be anything that can be added to a composition from the project panel, including (pre)compositions.
Xavier
Copy link to clipboard
Copied
Thank you Xavier. That's it. Appreciate your time.