Copy link to clipboard
Copied
Hello,
I have a nested comp which is time-remapped.
I need from within this nested comp to animate a parameter (trim path end of a circle shape) using a slider value in my main comp.
My problem is that this animation is done according to the remapped timeline and not the main comp timeline.
I thought something like this could work :
comp("Comp 1").layer("Settings").effect("Speed")("Slider").valueAtTime(comp("Comp 1").time)... but I can't retrieve comp("Comp 1").time
Can someone help please ?
Thnx
Copy link to clipboard
Copied
The comp itself doesn't have any sense of "time" -- what you could do is look at the offset in time between one comp and the other, and add or substract that to the valueAtTime.
That is, if the precomp starts 5 seconds before the main comp, then you'd use `valueAtTime(time - 5)`.
I go into this a little bit here: https://zacklovatt.com/sync-precomp-audio/
Copy link to clipboard
Copied
Hello zlovatt,
Thanks for your answer. I'll try to follow the offset solution you propose.
I can't do time - x if x is fixed because my child comp has a fluctuating time remapping.
Why is that that the comp has no sense of time? The read head cannot be positioned in time and expose this position?
Copy link to clipboard
Copied
Well! In that case, pickwhip the time remap property and use that for valueAtTime?
Copy link to clipboard
Copied
In fact it's the opposite I wish I could do: remove the time remapping on just one parameter of my comp while the rest of it remain in the remapping scope.
Copy link to clipboard
Copied
I add 2 screenshots, hopping it would make my case clearer


Copy link to clipboard
Copied
So this isn't straightforward to do. The best way would be to just _not_ have that property in time remap, or control this in a different way; what you're trying to do is difficult and not the best approach.
What about:
Would that approach solve this?
Copy link to clipboard
Copied
Agree with Zack. Don't mess with parameters inside a time-remapped comp. In addition to being nigh on unpredictable it can also cause rendering issues. Animating this with a slider would indeed be advisable. Also make good use of markers as reference to keep the timing straight.
Mylenium
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more