-
Expression to Keyframe Mask Path Shape From Mask on Another Layer
I’m trying to rig a character for lip sync using animated masks on a solid layer. Normally I have all my mouth shapes keyed, and when I want a specific mouth shape, I copy the mask keyframe and paste it where needed. But I’m trying to see if there’s a more elegant solution.
Here’s what I’ve set up so far: I’ve got a source layer; This is a solid layer that has an animated mask with all my mouth shapes (let’s say there are 10); this layer gets hidden or set as a guide layer. Then I’ve got my animated mouth layer. This is another solid with a mask on it.
I’ve been able to match the mask on the animation layer with the mask on the source layer by putting an expression on the Mask Path of the animation layer and pickwhipping it to the Mask Path on the source layer, so I know I can have the mask on one layer drive the mask on another layer.
Here’s what I’m wondering: is there a way for the mask on the animation layer to find the shape of the mask on the source layer at a different frame (or keyframe)? And then set that shape as a keyframe on the Mask Path of the animation layer.
I don’t want to do a simple time remapping because I want to be able to select any of the 10 shapes in any order and animate smoothly between those mask shapes.
I’m thinking it might use something like “value at time”, but I’m not knowledgeable enough on expressions to go any further.
I’ve got a few other ideas on how I can key the mouth shapes without copying and pasting, but I wanted to see if anyone had any ideas on if this method could work.
Thanks in advance for any help.
Jeff