pymel.core.context.createDrawCtx

createDrawCtx(*args, **kwargs)

The command creates a create/draw joint context. The context allows the user to quickly create mirrored joint chains.

Flags:
Long name (short name) Argument Types Properties
axis (a) unicode ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 

Specifies the axis to mirror. Valid strings are x, y, and z. C: The default is x.Q: When queried, this flag returns a string. Flag can have multiple arguments, passed either as a tuple or a list.

exists (ex) bool ../../../_images/create.gif
 
Returns true or false depending upon whether the specified object exists. Other flags are ignored.
image1 (i1) unicode ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
   
image2 (i2) unicode ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
   
image3 (i3) unicode ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Contexts support up to three icons that represent the tool associated with the context.

Derived from mel command maya.cmds.createDrawCtx

Example:

import pymel.core as pm

#    Create a createDrawContext with mirroring of the x axis and
#    use the tool.
#
pm.createDrawCtx( 'myCreateDrawContext', axis='x' )
# Result: u'myCreateDrawContext' #
pm.setToolTo( 'myCreateDrawContext' )