• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Comp marker at timeline cursor?

Community Beginner ,
Dec 09, 2016 Dec 09, 2016

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?

TOPICS
Scripting

Views

2.6K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Advocate , Dec 09, 2016 Dec 09, 2016

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

Votes

Translate

Translate
Advocate ,
Dec 09, 2016 Dec 09, 2016

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 10, 2016 Dec 10, 2016

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Dec 10, 2016 Dec 10, 2016

Copy link to clipboard

Copied

Sorry, i dont get it. What do you mean by "snap the beginning of a comp to cursor".

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 10, 2016 Dec 10, 2016

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Dec 10, 2016 Dec 10, 2016

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 12, 2016 Dec 12, 2016

Copy link to clipboard

Copied

LATEST

Thank you Xavier. That's it. Appreciate your time.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines