Bone "mouth" Lyps synch

Wondering how to accomplish a certain animation task? Ask here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
Ruggero123
Posts: 4
Joined: Tue Dec 15, 2020 2:47 pm

Bone "mouth" Lyps synch

Post by Ruggero123 »

Hi.
I have a bone that manage the animation of the mouth (created with different layers for teeth, tongue, lips etc).

I created a smart bone that when the bone goes at 180 grade the mouth is closing (each 30 grade the mouth assume different shape to emulate vocals&consonants, for example with the bone at 30° the mouth is like a U).

Now, when I have a file audio and I want to animate it, I just move the bone to 0 grades to 170 (10 grade before to close the mouth totally) and again from 170 to 10 till the audio speech is not over (when it is over I put the bone on 0 or 180 grades).

I would like to automate that when I insert a file audio. I tried with the Script > Sound > Bone Audio wiggle but it is not working properly because it is focusing on the volume of the audio (on the audio with a same tonality the script will use the middle smart bone frames without going up and down as I need).

I just need a script or a way that when I insert a file audio of 5 minutes, automatically the bone will be moved from 10 to 170 grades each 5-6 frames of the audio speech.

Do you know some script o any way to do it?
User avatar
hayasidist
Posts: 3831
Joined: Wed Feb 16, 2011 8:12 pm
Location: Kent, England

Re: Bone "mouth" Lyps synch

Post by hayasidist »

so you just want the mouth to open and close whilst there's an audio track? if so the simplest is to cycle the animation e.g. audio runs from frame x to frame y. Keys at frame x-1: bone at 0 deg; frame x: bone at 10 deg; frame x+5: bone at 170 deg; frame x+10: bone at 10 deg and cycle back to frame x+1. At frame y: bone at 0 deg (you might want to adjust that and the last cycle to avoid a sudden snap shut from wide open but ...)
Ruggero123
Posts: 4
Joined: Tue Dec 15, 2020 2:47 pm

Re: Bone "mouth" Lyps synch

Post by Ruggero123 »

hayasidist wrote: Wed Dec 16, 2020 2:00 pm so you just want the mouth to open and close whilst there's an audio track? if so the simplest is to cycle the animation e.g. audio runs from frame x to frame y. Keys at frame x-1: bone at 0 deg; frame x: bone at 10 deg; frame x+5: bone at 170 deg; frame x+10: bone at 10 deg and cycle back to frame x+1. At frame y: bone at 0 deg (you might want to adjust that and the last cycle to avoid a sudden snap shut from wide open but ...)
But what if in the audio there are some second where there is no speech? Imagine the pause between sentences
User avatar
Maestral
Posts: 584
Joined: Tue Jan 27, 2009 5:44 pm
Location: Belgrade, Serbia

Re: Bone "mouth" Lyps synch

Post by Maestral »

It could easily be just a typo - try 'lip sync' for search, either here or in browser
Post Reply