The length of the animation

Hello, support team

I have a question.
• If you want to know how to fit the length of the voice data, to maintain, the length of the animation made ​​of FaceFX.
If you import it by dragging the voice data, you have the margin back and forth from the voice data.
When you import the voice data, you want to import it without making the margin back and forth.
The Save the scene, you want to keep the state in which there is no margin.

Thank you

Permalink

Be careful here, the margin is important. I'm assuming you want to export FBX animations that exactly match the audio in duration, but you don't want your character to "snap" in the beginning or at the end.

Read more about Negative Keyframes here:
http://facefx.com/documentation/2013.2/W64

There isn't a great way to get the audio length, but for single channel audio, you can just divide the samples by the samplerate. Then you can set the time extents with the following python commands:

endTime = float(len(getAudio()[4]))/float(getAudio()[3])
setVisibleTimeRange(0,endTime)

The time extents won't be saved unfortunately, so you will have to do this operation each time you select an animation (if you are doing this when you export an FBX file, you can also use the FBX command to explicitly set the animation end time without relying on FaceFX Studio's timeline). If you want to have the timeline always set this way in Studio, you could wire up the animationselectionchanged callback to set the time extents to the audio extents automatically.

http://facefx.com/documentation/2013.2/W91

Permalink

Hi,

I tried reading about Negative Keyframes, but a little, I could not understand a good description is difficult.

What I want is to include it in the exported data has started from frame 0.
Is it possible when you export the FBX data and export data from frame 0 always?

Thank you

Permalink

You can do that, but the face may not be "at rest" at the beginning and end of the animation.

It can take time to make the face start and end in a neutral position so there is no "snapping" when you play the animation.

Permalink

Hi,

I was able to understand.
I'll try to think of other methods.

Thank you