pymel.core.animation.movOut

movOut(*args, **kwargs)

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.

Flags:
Long name (short name) Argument Types Properties
comment (c) bool ../../../_images/create.gif
 
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) unicode ../../../_images/create.gif
 
The name of the .mov file. If no extension is used, a .mov will be added.
precision (pre) int ../../../_images/create.gif
 

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 ../../../_images/create.gif
 
The time range to save as a .mov file. The default is the current time range.

Derived from mel command maya.cmds.movOut

Example:

import pymel.core as pm

import maya.cmds as cmds

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

Previous topic

pymel.core.animation.movIn

Next topic

pymel.core.animation.movieInfo

Core

Core Modules

Other Modules

This Page