Activity › Forums › Adobe After Effects › Expression for setting timeremapping value to the layers index…
-
Expression for setting timeremapping value to the layers index…
Posted by Chris Forrester on November 13, 2006 at 10:59 pmI thought this would be as easy as just placing “index” in the expression panel after timeremapping had been activated…seems im wrong…or im doing something wrong. Anyone able to help me out with this. I want to have these as held keyframes also.
Many thanks
chris
Chris Forrester replied 19 years, 6 months ago 3 Members · 6 Replies -
6 Replies
-
Steve Roberts
November 13, 2006 at 11:11 pmSo you want a piece of footage to be frozen at frame “index”? To do that, you apply time remapping, opt-click on the stopwatch, then replace the default expression text with the word “index”. No quotes. For layer 1, that would freeze the image at 1:00.
If you make the expression index*200, you will freeze layer 1 at 200 seconds, which is 3:20:00.
Is that what you want?
-
Chris Forrester
November 13, 2006 at 11:51 pmAhhh I see now…When I typed index it was coming up always on layer 1 as holding on frame 26 which i thought weird, but as im working in pal 25fps it would make sense now thanks to your good self, (I count from 1 not 0 in my compositions hence 26) I guess this is one of those gotchas.. ( and not a RTFM I hope :-P)
Right I get it now. I ended up with the expression (index/25)-1 ,this gives me the same value as the index of the layer with the timeremapping.
Thank you 😀 I hoped someone would reply this evening many thanks!
Chris
-
Steve Roberts
November 14, 2006 at 12:04 amAh, so it was a frames vs. seconds thing. Beware — other effects and properties behave the same way, using seconds, not frames.
Glad you got it solved. 🙂
-
Chris Forrester
November 14, 2006 at 12:04 amGrrrrr,
I was to hasty….Im going to post this just in case someone reads this
I should of used the value of (index/25)-1/25 As I only wanted to subtract one frame…not one whole second. I forgot it works as 1=A second…
Im sure I will never forget that ever again….yea right
-
Mylenium
November 14, 2006 at 7:01 amThere’s an even simpler solution:
framesToTime(index)
Mylenium
[Pour Myl
Reply to this Discussion! Login or Sign Up