I have a series of 9 mouth images for a lip synch.
(If there is a better way (which I'm sure there is) to achieving what the following want's to achieve please let me know)
I'm wondering if there's a way to create a slider control (value 1-9) that will effect the opacities of the 9 layers accordingly (turning them on and off) as the slider's value raises.
Something along the lines of
if(effect slider > 0 || effect slider < 1.1) ((thisComp.layer("mouth_0001_eee.png").tramform.opacity = 100) else (thisComp.layer("mouth_0001_eee.png").transform.opacity = 0)
Obviously I don't have much scripting experience. This expression would have to be re-written for each layer with a different range (0 - 1.1 , 1.1 - 2.1 , 2.1 - 3.1 , ect)
As I type this it seems highly inefficient, like I almost might as well just animate each layers opacity directly.
Is there an efficient way to do what I am imagining?
I usually do lip sync using multiple images using time remapping on an image sequence with my mouth shapes on a single layer that's only a few frames long. It sounds like you are using nine layers and want to animate opacity. If that's the technique you are using I'd probably set up an expression that looks for layer markers.
By far the easiest way to do lip sync is with this script by my friend Mathias Mohl: Auto Lip-Sync - aescripts + aeplugins - aescripts.com
It just depends on your workflow.
I did see a video online about how to do it with a short sequence and time remapping but passed over looking for something dealing with an opacity expression. I will go back and watch it.
Also checked out the script and I may pick that up as well.
Thanks for they reply.