Copy link to clipboard
Copied
Hello,
I have an audio layer that I'd like to start at the same time as the first keyframe of a mask path titled "Mask 1" on a layer titled "Mask Movement". However, the position in time of the keyframes of the mask path are set to change based on the outpoint of a different layer using the following expression:
target = thisComp.layer("Target Layer");
targetMask = target.mask("Particular Path").maskPath;
targetMask
In case it helps, the purpose of the audio layer automatically changing its start position is because I'm creating multiple renders that have varying timings, so it would help to automate the process.
Thank you!
Enable time remapping for your audio layer and then apply this time remapping expression:
t = thisComp.layer("Mask Movement").mask("Mask 1").maskPath.key(1).time;
valueAtTime(time - t)
Copy link to clipboard
Copied
Enable time remapping for your audio layer and then apply this time remapping expression:
t = thisComp.layer("Mask Movement").mask("Mask 1").maskPath.key(1).time;
valueAtTime(time - t)