Activity › Forums › Adobe After Effects Expressions › Hold frame script
-
Hold frame script
Posted by Tracy Peterson on April 5, 2009 at 7:37 amI 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.comHolby Larsen replied 17 years, 1 month ago 4 Members · 8 Replies -
8 Replies
-
Dan Ebberts
April 5, 2009 at 7:57 amEnable time remapping and try this time remapping expression:
framesToTime(Math.floor(timeToFrames()/4));
Dan
-
Tracy Peterson
April 5, 2009 at 9:16 pmUsing 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 pmI 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 pmawesome 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 pmLayer > 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 pmHello
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 pmsorry 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
Reply to this Discussion! Login or Sign Up