Time remap a Precomp(loop), to sync to layer markers
Posted: December 9th, 2006, 7:06 am
Hi there,
I'm trying to time remap a loop I have in a Pre-comp so that in the main comp it start always when the time cursor hit a layer marker.
Basically I need strech the duration of the Pre-comp so that it always fit the distance between two layer markers.
I tried Dan Ebberts' express:
hit=marker.key(1).time;
t=time-this_comp.layer("audio.wav").marker.nearest_key(time).time;
t+hit
but the loop stop at half time of the animation.
I think because the time cursor as soon as it cross half of the loop is getting the value of the next layer marker.
I also try to add some statement but with no luck..
Does anybody have any idea?
Mauro
xxxxxxxxxxxxxxxxx
I'm trying to time remap a loop I have in a Pre-comp so that in the main comp it start always when the time cursor hit a layer marker.
Basically I need strech the duration of the Pre-comp so that it always fit the distance between two layer markers.
I tried Dan Ebberts' express:
hit=marker.key(1).time;
t=time-this_comp.layer("audio.wav").marker.nearest_key(time).time;
t+hit
but the loop stop at half time of the animation.
I think because the time cursor as soon as it cross half of the loop is getting the value of the next layer marker.
I also try to add some statement but with no luck..
Does anybody have any idea?
Mauro
xxxxxxxxxxxxxxxxx