Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions How to provide a specific frame to an expression

  • How to provide a specific frame to an expression

    Posted by Mark Antonio on July 29, 2009 at 5:03 pm

    hello guys,

    i want to add an expression to a specific time. for this i use the following expression:

    if( time > 94 && time < 98 ) { wiggle( 3,15 ) }else{ value; }

    the problem is, i don’t know how to exactly provide a specific time like 00:01:34:17.

    could you pros please tell me?

    regards, mark

    Mark Antonio replied 17 years, 1 month ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    July 29, 2009 at 8:50 pm

    You could do the conversion from timecode to seconds like this:

    timeString = “00:01:34:17”;
    splitTime = timeString.split(“:”);
    t1 = (parseInt(splitTime[0],10)*60 + parseInt(splitTime[1],10))*60 +
    parseInt(splitTime[2],10) + framesToTime(parseInt(splitTime[3],10));

    There’s probably a simpler way, but I can’t think of one off hand.

    Dan

  • Mark Antonio

    July 29, 2009 at 8:59 pm

    Hey dan,

    no problem! thanks for the advise. will check that out right now. 🙂

    regards, mark

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