As a programmer who does art and animation as a hobby, this tutorial made me so happy. Combining my work and my hobby together is awesome! Makes me want to see what else I can tweak with scripts :D
If you use this as the first line of the expression, you don't have to manually change the layer number each time: layerNum = index - parent.index; You just have to make sure the controller stays directly above the mouth layers.
@@ross Awesome method! Simple and easy to use, especially with the index-based numbering. Also, if you bind "Copy Expression Only" to Ctrl+Tab, you can quickly copy and paste the expression without opening the expression box.
Thanks! I just put: layerNum = index; Because then what slider value you want can easily be determined by the layer number (index). Also, after you code the first opacity, press control+c when opacity is selected, then select all other mouth layers and press control+v. Alos add this to second line of slider code: Math.floor(clamp(value, min=*lowest layer number of visemes*, max=*highest layer number of visemes*));
Nice one 🤙now just pick_whip the slider value to a rotation value of the same or different null and use the rotation value to input your lip keyframes (also make them hold keyframes). This way you can keyframe like the wind using + and - hotkeys for rotation value (which now controls lips) and pg. up / pg. down keys to advance frames and "0" hotkey to ram render preview your work area as you go.
Hola, si a éste tutorial llegó un hispanohablante y le marca error en la expresión, es porque tienes el After en español. Así las cosas, el código quedaría layerNum = 1 control = comp("nombre de la composición").layer("lnombre de la capa").effect("Control del deslizador")("Deslizador"); if(control == layerNum) {value = 100;} else {value = 0;} Thank you very much Ross Plasskow.
I'm doing the walk of shame back to this video because I figured time remapping wouldn't give me any glitches for my project. Now it did and I'm going what I should have done in the first place
Click the * option (next to the Shy icon) on the layer with time-remapping, and your glitches will go away. That option is actually called "collapse transformations," which I didn't understand or need until AFTER I did tons of lipsync with time-remapping. It has saved the day on a new project with time-remapping.
And you can also add this lines of code to be able to use slider control else if(control >= layerNum && control < layerNum + 1) {value = 100;} So the final rusult is: layerNum = 1 control = comp("compname").layer("layername").effect("Slider Control")("Slider"); if(control == layerNum) {value = 100;} else if(control >= layerNum && control < layerNum + 1) {value = 100;} else {value = 0;}
i have a problem, the slider hav decimals and i cannot hit perfect 2 or 3 or whatever since its something like 1,9842 or 2,4535. how do i prevent this from happening because this way i cannot control anyhting if i dont hit exactly 1,2,3 or 4
Yeah I just realised I have this same problem where it spams all the layers to get to the next slider key frame. The only solution I have so far is having two set key frames for one mouth movement and keeping them one frame of the previous and next changing mouth movement. That way it can't transition through all the slider numberss. Hope this helps
@@stunella I actually created a text field, loaded the content of the slider and rounded it, and refered to the text field with the mouths instead of directly to the slider. the text field as a middle man solved several issues with multiple work flows in the past and it keeps me going haha
Or... If you aren't advanced or patient enough for all this coding, use Time-remapping (or even make a slider, or use awesome plug-in SF Caddy) and then (most importantly) select the comp with your mouths in it, press the STAR option (next to the "Shy" button in your column, it's actually called "collapse transformations"), and then all of the lip-sync won't be glitchy. I say this after animating 15 episodes of a show with glitchy lipsync and finally stumbling on this solution. Collapse transformations makes top priority of rendering the movement from one key to another, getting rid of dropped frames or sticking frames. Seriously. [No disrespect to this super informative video, I just want to put this really necessary step out there for lipsync no matter which option you choose]
Works great if you have a single character to lip sync with, what if you have multiple characters using the same lip composition? would you have to change the composition name for each character? It seems more stressful tho, except i don't totally understand. I'll be glad if you can throw more light. @Ross
When I tried this the mouth kept disappearing because if the keyframes aren't right next to each other the slider value becomes a decimal and all mouths have 0% opacity. How do I stop the slider from using decimals between keyframes? As a hotfix I'm using Math.floor() but that feels a little bit jank and I'd love to know what I'm missing here.
This is way more effort than time remapping? Especially if I have 20 MOUTHS THE ANIMATION aspect is relatively the same - but the set up of urs is way more tedious ?
hi, what glitches are you getting ? Also I have 50 mouth shape layers so this method may be a bit tedious. Automating layer index may solve this. Perhaps copy paste would work here for all the layers?
“Copy and paste this script” Shows completely unreadable script. Use letter bordering or drop shadow or put the words over a solid color. Make it easier for the viewer. Good video though
Character Animator is terrible and the automated lip sync feature has bad results, so you may as well do it manually, and if you're doing it manually then use a better programme. Saying that, Adobe Animate has good lip syncing, but a completely different way of working
dude....if u have all phases as paths....just please...why u just dont use keyframes on paths on the ONE shape layer....geeez.....no scripts, no problems...
help : when I move the head with puppet tools, than the mouth characters don't follow the head movements. (Mouth is parenting with the Head). How to solve that?
If you enjoyed this vid and want to learn more check out my free After Effects course for beginners! - ruclips.net/video/_zFCeXO6x2Y/видео.html
This expression is not working. Kindly check.
As a programmer who does art and animation as a hobby, this tutorial made me so happy. Combining my work and my hobby together is awesome! Makes me want to see what else I can tweak with scripts :D
If you use this as the first line of the expression, you don't have to manually change the layer number each time:
layerNum = index - parent.index;
You just have to make sure the controller stays directly above the mouth layers.
oh wow! i never knew!! thank you so much x
@@ross Awesome method! Simple and easy to use, especially with the index-based numbering.
Also, if you bind "Copy Expression Only" to Ctrl+Tab, you can quickly copy and paste the expression without opening the expression box.
Thanks! I just put:
layerNum = index;
Because then what slider value you want can easily be determined by the layer number (index).
Also, after you code the first opacity, press control+c when opacity is selected, then select all other mouth layers and press control+v.
Alos add this to second line of slider code: Math.floor(clamp(value, min=*lowest layer number of visemes*, max=*highest layer number of visemes*));
I don't do a lot of character animation these days, but I love this tip so much I'm inclined to dive back in and try it!
Nice one 🤙now just pick_whip the slider value to a rotation value of the same or different null and use the rotation value to input your lip keyframes (also make them hold keyframes). This way you can keyframe like the wind using + and - hotkeys for rotation value (which now controls lips) and pg. up / pg. down keys to advance frames and "0" hotkey to ram render preview your work area as you go.
I bumped into this exact problem when animating my thesis film, and came up with a simular fix. Good you made a tutorial for futur animators!
Wow Ross is back! I started in Ae world because I saw your tutorial of character animation 6 years ago. Thanks for all Ross!
Nice, professional, plugin free, and easy way to make lip sync in AE! 👏👏
TY FOR THE TUTORIAL!! this is like, one of the very few times I've been practicing with after effects and this was super easy to follow!!
Hola, si a éste tutorial llegó un hispanohablante y le marca error en la expresión, es porque tienes el After en español. Así las cosas, el código quedaría
layerNum = 1
control = comp("nombre de la composición").layer("lnombre de la capa").effect("Control del deslizador")("Deslizador");
if(control == layerNum)
{value = 100;}
else
{value = 0;}
Thank you very much Ross Plasskow.
Muchas gracias,justo tenia ese error,te lo agradezco :)
best lipsync tutorial!!!!!!!!!!!!!
dude i used to love your short story videos. i hope you make some
I'm doing the walk of shame back to this video because I figured time remapping wouldn't give me any glitches for my project. Now it did and I'm going what I should have done in the first place
Click the * option (next to the Shy icon) on the layer with time-remapping, and your glitches will go away. That option is actually called "collapse transformations," which I didn't understand or need until AFTER I did tons of lipsync with time-remapping. It has saved the day on a new project with time-remapping.
Nice. And if you need one shape to be on two layers you can just assign the same layernum to them both.
We better see you sooner than another few years. Just watched meat mysteries and realised you posted new vids!!
This is *so much better*, thank you!
And you can also add this lines of code to be able to use slider control
else if(control >= layerNum && control < layerNum + 1)
{value = 100;}
So the final rusult is:
layerNum = 1
control = comp("compname").layer("layername").effect("Slider Control")("Slider");
if(control == layerNum)
{value = 100;}
else if(control >= layerNum && control < layerNum + 1)
{value = 100;}
else
{value = 0;}
Missing this guy ❤
Elegant and simple, nice! Thanks!
Perfect! Thank you so much.
Great video as always! Thanks Ross.
Its great!
i have a problem, the slider hav decimals and i cannot hit perfect 2 or 3 or whatever since its something like 1,9842 or 2,4535. how do i prevent this from happening because this way i cannot control anyhting if i dont hit exactly 1,2,3 or 4
Yeah I just realised I have this same problem where it spams all the layers to get to the next slider key frame. The only solution I have so far is having two set key frames for one mouth movement and keeping them one frame of the previous and next changing mouth movement. That way it can't transition through all the slider numberss. Hope this helps
@@stunella I actually created a text field, loaded the content of the slider and rounded it, and refered to the text field with the mouths instead of directly to the slider. the text field as a middle man solved several issues with multiple work flows in the past and it keeps me going haha
here's an experssion to solve that problem: layerNum = 1;
control = Math.floor(comp("Comp 1").layer("mouth ctl").effect("Slider Control")("Slider"));
if(control == layerNum)
{value = 100;}
else
{value = 0;}
perfect tutorial👏👏
That's all great but what does it have to do with dinosaurs in space?
WOOOOOWWWWW THAAANK YOUUUUUUU I LOVE YOUUUUU
Thank you!
how do you make each keyframe more fast. or i can only make manually every keyframe in the slider
I feel reborn. Thank you 🙏🏾
Or... If you aren't advanced or patient enough for all this coding, use Time-remapping (or even make a slider, or use awesome plug-in SF Caddy) and then (most importantly) select the comp with your mouths in it, press the STAR option (next to the "Shy" button in your column, it's actually called "collapse transformations"), and then all of the lip-sync won't be glitchy. I say this after animating 15 episodes of a show with glitchy lipsync and finally stumbling on this solution. Collapse transformations makes top priority of rendering the movement from one key to another, getting rid of dropped frames or sticking frames. Seriously. [No disrespect to this super informative video, I just want to put this really necessary step out there for lipsync no matter which option you choose]
Do u know how to switch mouth animations with null layer
Thank you so much brother _/|_ you made my day simple :)
Cool but how to synchronize with an audio track after this ?
Works great if you have a single character to lip sync with, what if you have multiple characters using the same lip composition? would you have to change the composition name for each character? It seems more stressful tho, except i don't totally understand. I'll be glad if you can throw more light. @Ross
So nice! Thank you very much ^-^
When I tried this the mouth kept disappearing because if the keyframes aren't right next to each other the slider value becomes a decimal and all mouths have 0% opacity. How do I stop the slider from using decimals between keyframes? As a hotfix I'm using Math.floor() but that feels a little bit jank and I'd love to know what I'm missing here.
Nice
This is way more effort than time remapping? Especially if I have 20 MOUTHS
THE ANIMATION aspect is relatively the same - but the set up of urs is way more tedious ?
Gracias :B
I did all the steps but couldn't link audio to the null object someone tell me now please 🙏🏻 😂
hi, what glitches are you getting ?
Also I have 50 mouth shape layers so this method may be a bit tedious. Automating layer index may solve this. Perhaps copy paste would work here for all the layers?
A Gem!
좋아요~
Why do all of you youtubers never show how to create layers...
My man was gatekeeping stuff from us for 9 years....
thanks, you are genius!
“Copy and paste this script”
Shows completely unreadable script. Use letter bordering or drop shadow or put the words over a solid color. Make it easier for the viewer. Good video though
its in the video details
Try using Adobe Character Animator for this. It will save you LOADs of time
Character Animator is terrible and the automated lip sync feature has bad results, so you may as well do it manually, and if you're doing it manually then use a better programme. Saying that, Adobe Animate has good lip syncing, but a completely different way of working
dude....if u have all phases as paths....just please...why u just dont use keyframes on paths on the ONE shape layer....geeez.....no scripts, no problems...
Thank You!
help : when I move the head with puppet tools, than the mouth characters don't follow the head movements. (Mouth is parenting with the Head). How to solve that?
Nice