Time discrepencies with expressions in nested comps
- April 8, 2022
- 3 replies
- 3388 views
This is a tricky one. I'll try and explain!
I have an animation of a fly buzzing, the fly floats around via a wiggle expression that gets it's amplitude value from a slider in the parent comp. Easy so far. The issue is the slider's keyframe and the fly's corresponding animation only line up if the fly comp starts at 0 on the main timeline. If it starts at say, 2 seconds in, then whatever the key frame on the slider is, the fly comp isn't effected until 2 seconds later. I'll include a graphic to clarify. So I'm trying to write an expression that looks at where on the timeline the fly comp starts, and then offsets it's value from the slide by that amount of time. It's not working lol. Below is the code AND the diagram (I'm trying to create the bottom instance). Help!
