Go to: Synopsis. Return value. Related. Flags. Python examples.
movOut(
[targetList]
, [comment=boolean], [file=string], [precision=uint], [time=timerange])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
movOut is undoable, NOT queryable, and NOT editable.
Exports a .mov file from the listed attributes. Valid attribute types are numeric attributes; time attributes; linear attributes; angular attributes; compound attributes made of the types listed previously; and multi attributes composed of the types listed previously.Length, angle, and time values will be written to the file in the user units.
If an unsupported attribute type is requested, the action will fail. The .mov file may be read back into Maya using the movIn command.
None
Long name (short name) | Argument types | Properties | ||
---|---|---|---|---|
comment(c)
|
boolean
|
![]() |
||
|
||||
file(f)
|
string
|
![]() |
||
|
||||
precision(pre)
|
uint
|
![]() |
||
|
||||
time(t)
|
timerange
|
![]() |
||
|
![]() |
![]() |
![]() |
![]() |
import maya.cmds as cmds # Create a sphere and set some keyframes. # cmds.sphere( n='sph' ) cmds.currentTime( 0 ) cmds.move( 0, 0, 0, 'sph' ) cmds.setKeyframe( 'sph.t' ) cmds.currentTime( 24 ) cmds.move( 8, 9, 10, 'sph' ) cmds.setKeyframe( 'sph.t' ) # Write the keys to a .mov file. # cmds.movOut( 'sph.t', f='sphereMotion.mov', t=(0,24) ) # Another way to write the same file. # cmds.movOut( 'sph.tx', 'sph.ty', 'sph.tz', f='sphereMotion.mov', t=(0,24) )