Go to: Synopsis. Return value. Related. Flags. Python examples.

Synopsis

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.

Return value

None

Related

applyTake, defineDataServer, defineVirtualDevice, enableDevice, filter, movIn, readTake, recordDevice, writeTake

Flags

comment, file, precision, time
Long name (short name) Argument types Properties
comment(c) boolean create
If true, the attributes written to the .mov file will be listed in a commented section at the top of the .mov file. The default is false.
file(f) string create
The name of the .mov file. If no extension is used, a .mov will be added.
time(t) timerange create
The time range to save as a .mov file. The default is the current time range.
precision(pre) uint create
Sets the number of digits to the right of the decimal place in the .mov file.
C: The default is 6.

Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can have multiple arguments, passed either as a tuple or a list.

Python examples

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) )