FORUMS: list search recent posts

Get position on timeline from other comp

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Allard Rothengatter
Get position on timeline from other comp
on Sep 11, 2015 at 9:58:58 am

Hey guys,

Anwser to this one is probably pretty straight forward, but I am having a hard time figuring it out.

I have a comp with an animation triggered by a marker positioned at say 5 seconds in the main timeline. This works great, provided the comp starts at 0:00:00:00 in the main timeline. As soon as I reposition the comp to start at, for instance, 0:00:03:00 my animation still works, however it starts at 8 seconds (the 3 second delay for moving the comp down the timeline, and then te 5 seconds which is the position of the marker in the main timeline).

I need to figure out how to get the current frame of the main timeline in stead of the current frame of the comp containing the animation.

My code is roughly like this:
ease(time, nextMarkerTime, nextMarkerTime+1,0,100);

And I would like it to be something like:
ease(comp('Main Timeline').time, nextMarkerTime, nextMarkerTime+1,0,100);

However, AE doesn't accept the comp('Main Timeline').time part.

Any clues on how to fix this...


Thanks,
Allard


Return to posts index

Miguel de Mendoza
Re: Get position on timeline from other comp
on Sep 11, 2015 at 10:52:38 am

You must route a concrete instance of the animation comp:
comp("Main Timeline").layer("AnimationComp").startTime


Return to posts index

Allard Rothengatter
Re: Get position on timeline from other comp
on Sep 11, 2015 at 11:02:55 am

Alright, and based on the comp start time in the main timeline do some maths to figure out the start point for the animation?!

Thanks for pointing me in the right direction. Will dive into it...


Return to posts index


Miguel de Mendoza
Re: Get position on timeline from other comp
on Sep 11, 2015 at 11:37:28 am

Yes, but no complex math here, just add startTime value to the times you want to control.


Return to posts index

Allard Rothengatter
Re: Get position on timeline from other comp
on Sep 11, 2015 at 11:39:34 am

Thanks!!


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]