Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Hold frame script

  • Posted by Tracy Peterson on April 5, 2009 at 7:37 am

    I need to take a peice of footage and take each frame and hold it for four frames then go to the next one. This effect would basically increase the length of a track by 4x, but by increasing the number of times a frame is shown to 4, before moving to the next frames. it would look like this:

    123456 would end up 111122223333444455556666

    Help,pls!

    I know nothing about expressions but feel like this should be possible for some reason. Thanks in advance!

    Tracy Peterson
    http://www.onetwomany.com

    Holby Larsen replied 17 years, 1 month ago 4 Members · 8 Replies
  • 8 Replies
  • Dan Ebberts

    April 5, 2009 at 7:57 am

    Enable time remapping and try this time remapping expression:

    framesToTime(Math.floor(timeToFrames()/4));

    Dan

  • Filip Vandueren

    April 5, 2009 at 8:27 pm

    Is stretching the layer to 400% not working for you ?

  • Tracy Peterson

    April 5, 2009 at 9:16 pm

    Using the percentage speed adjustment will interpolate some frames and that’s an effect I want to avoid.

    Tracy Peterson
    http://www.onetwomany.com

  • Filip Vandueren

    April 5, 2009 at 10:58 pm

    I thought so.
    It’s probably interlaced footage, a precomp, or frame blending is enabled.

    Either way if you would like to do this without expressions:
    * precomp the footage,
    * for the precomp, go to “Composition Settings” -> Advanced Tab:
    enable the option “preserve frame rate when nested or in render queue”.

    Now you can stretch that precomp 400%, and it will not use sub-frame accuracy.

  • Tracy Peterson

    April 7, 2009 at 7:56 pm

    awesome tip, and i checked out your site, nice work. I still need a little help here though:

    where do I apply this code fragment? I can’t apply an expression to a whole clip and I don’t know what property applies to time, that I can apply this to. Where does it go?

    Sorry, total newb to expressions.

    I want to use this method more to learn now, than to avoid using stretch.

    Tracy Peterson
    http://www.onetwomany.com

  • Dan Ebberts

    April 7, 2009 at 8:02 pm

    Layer > Time > Enable Time Remapping.

    Then apply the expression to the Time Remapping property (Alt+click on the stopwatch and paste it in).

    Dan

  • Holby Larsen

    April 9, 2009 at 3:29 pm

    Hello

    Glad to see your topic when I came here I was trying to figure this exact thing out, with one modification:

    I need it to freeze for time X
    (as above 111222333)
    but then play again for time Y
    (111222333444 56789 10101010111112121212 1314151617 etc)

    so the clip freezes for Y amount of time and then plays normal for X amount of time. stop and go, stop and go stop and go…

    most greatful for any help!

    fubbi

    fubbi.com

  • Holby Larsen

    April 9, 2009 at 3:44 pm

    sorry responded to the middle post and landed in a weird position, my post again:

    Hello

    Glad to see your topic when I came here I was trying to figure this exact thing out, with one modification:

    I need it to freeze for time X
    (as above 111222333)
    but then play again for time Y
    (111222333444 56789 10101010111112121212 1314151617 etc)

    so the clip freezes for Y amount of time and then plays normal for X amount of time. stop and go, stop and go stop and go…

    most greatful for any help!

    fubbi

    fubbi.com

    fubbi.com

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