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.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
comment (c) | bool | ||
|
|||
file (f) | unicode | ||
|
|||
precision (pre) | int | ||
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 commandFlag can have multiple arguments, passed either as a tuple or a list. |
|||
time (t) | timerange | ||
|
Derived from mel command maya.cmds.movOut
Example:
import pymel.core as pm
# Create a sphere and set some keyframes.
#
pm.sphere( n='sph' )
# Result: [nt.Transform(u'sph'), nt.MakeNurbSphere(u'makeNurbSphere1')] #
pm.currentTime( 0 )
# Result: 0.0 #
pm.move( 0, 0, 0, 'sph' )
pm.setKeyframe( 'sph.t' )
# Result: 3 #
pm.currentTime( 24 )
# Result: 24.0 #
pm.move( 8, 9, 10, 'sph' )
pm.setKeyframe( 'sph.t' )
# Result: 3 #
# Write the keys to a .mov file.
#
pm.movOut( 'sph.t', f='sphereMotion.mov', t=(0,24) )
# Another way to write the same file.
#
pm.movOut( 'sph.tx', 'sph.ty', 'sph.tz', f='sphereMotion.mov', t=(0,24) )