NOTES SUR L'ANIMATION FACIALE . Nov 2009


Callage du son et des mouvements faciaux :


Maya supporte les formats audio suivants

Platform

Audio file format

Linux®

.aiff, .wav

Microsoft® Windows®

.aiff, .wav (maya n'importe pas le wav de Mac)

Apple® Mac OS® X

.aiff, .wav, .mp3


To load an audio file into your scene

  1. Do one of the following:

To display sound on the Time Slider

  1. -click the Time Slider.

    A pop-up menu appears.

  2. 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;