NOTES SUR L'ANIMATION FACIALE . Nov 2009
Callage du son et des mouvements faciaux :
Maya supporte les formats audio suivants
|
Platform |
Audio file format |
|---|---|
To load an audio file into your scene
Do one of the following:
Use File > Import. A file browser lets you select the name of the sound file to import.
Locate the file and drag the file into one of the Maya modeling views.
Locate the file and drag the file onto the Time Slider.
The peaks of the sound waves are visible in the Time Slider, and the Time Slider is ready to play or scrub the sound.
To display sound on the Time Slider
-click
the Time Slider.
In the pop-up menu, select the audio file you want to hear from Sound > audio file.
![]()
The audio file’s waveform appears in the Time Slider and it plays during playback.
Fenetre mel de control (scrub)
// To display sound in a soundControl, there must first be a sound
// node in the scene. We'll create one and give it the name "ohNo".
// Note that the argument to the -file flag must be a path to a valid
// soundfile.
//
sound -file "test.wav" -name "test";
// Create a sound control (named "soundScrubber")
// and have it display the sound associated with audio node "test".
//
window;
frameLayout -lv false;
soundControl -width 600 -height 45 -sound test
-displaySound true -waveform both soundScrubber;
showWindow;
// Now setup "soundScrubber" to actually scrub with
// mouse drags.
//
string $pressCmd = "soundControl -e -beginScrub soundScrubber";
string $releaseCmd = "soundControl -e -endScrub soundScrubber";
soundControl -e -pc $pressCmd -rc $releaseCmd soundScrubber;
// To display sound in the time slider, there must first be a sound
// node in the scene. We'll create one and give it the name "ohNo".
// Note that the argument to the -file flag must be a path to a valid
// soundfile.
//
sound -file "C:/My Documents/maya/projects/default/sound/ohNo.aiff" -name "ohNo";
// To display sound in the time slider, you must specify
// the sound node to display and turn display of sound "on."
//
global string $gPlayBackSlider;
timeControl -e -sound "ohNo" -displaySound true $gPlayBackSlider;
// To hear sound while scrubbing in the time slider, set the press and
// release commands to begin and end sound scrubbing.
//
timeControl
-e -pressCommand
"timeControl -e -beginScrub $gPlayBackSlider"
-e -releaseCommand
"timeControl -e -endScrub $gPlayBackSlider"
$gPlayBackSlider;