Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Query and edit the current time via script

  • Query and edit the current time via script

    Posted by Christian Stejnar on April 30, 2008 at 2:37 pm

    Hi all,

    I´d search for the JS function to read out and edit the current time in an AE comp. The purpose would be to create custom scripts to increment the current time by any disered value – eg. jumping 25, 50 etc. frames in time. did not find any hints in the AE Scripting Guide.

    Christian Stejnar replied 18 years ago 2 Members · 4 Replies
  • 4 Replies
  • Dan Ebberts

    April 30, 2008 at 3:15 pm

    Are you talking about a script or an expression?

    Are you talking about system clock time or current comp time?

    Dan

  • Christian Stejnar

    April 30, 2008 at 3:23 pm

    Ah sorry – I am talking about a Script and I would neet the “Current Comp Time” – many thanks in advance 😉

  • Dan Ebberts

    April 30, 2008 at 4:13 pm

    I think it’s just “time”. Something like this should work:

    var myComp = app.project.activeItem;
    myComp.time += 25*myComp.frameDuration;

    Dan

  • Christian Stejnar

    May 2, 2008 at 8:20 am

    Great – thx for your help!!!

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy