This action writes a take from a device with recorded data to a take (.mov) file. The writeTake action can also write the virtual definition of a device. See also: recordDevice, readTake, defineVirtualDevice
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
angle (a) | unicode | ||
|
|||
device (d) | unicode | ||
|
|||
linear (l) | unicode | ||
Sets the linear unit used in the take. Valid strings are [mm|millimeter|cm|centimeter|m|meter|km|kilometer|in|inch|ft|foot|yd|yard|mi|mile]C: The default is the current user linear unit.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list. |
|||
noTime (nt) | bool | ||
|
|||
precision (pre) | int | ||
|
|||
take (t) | unicode | ||
|
|||
virtualDevice (vd) | unicode | ||
|
Derived from mel command maya.cmds.writeTake
Example:
import pymel.core as pm
# Record data from the clock device and write out the virtual
# device definition and take file.
pm.recordDevice( device='clock' )
pm.recordDevice( device='clock', stop=True )
pm.writeTake( device='clock', take='clock.mov', virtualDevice='virtualClock.mel' )
# Read the virtualClock and virtualClock take data.
maya.mel.eval("virtualClock")
pm.readTake( device='virtualClock', take='clock.mov' )