pymel.core.context.texRotateContext

texRotateContext(*args, **kwargs)

This command can be used to create, edit, or query a rotate context for the UV Editor. Note that the above flag controls the global behaviour of all texture editor rotate contexts. Changing one context independently is not allowed. Changing a context’s behaviour using the above flag, will change all existing texture editor rotate contexts.

Flags:

Long Name / Short Name Argument Types Properties
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
  First of three possible icons representing the tool associated with the context.
image2 / i2 unicode ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  Second of three possible icons representing the tool associated with the context.
image3 / i3 unicode ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  Third of three possible icons representing the tool associated with the context.
position / p bool ../../../_images/query.gif
  Returns the current position of the manipulator
snap / s bool ../../../_images/query.gif ../../../_images/edit.gif
  Sets or queries whether snapping is to be used.
snapRelative / sr bool ../../../_images/query.gif ../../../_images/edit.gif
  Sets or queries whether snapping is relative.
snapValue / sv float ../../../_images/query.gif ../../../_images/edit.gif
  Sets or queries the size of the snapping increment. Flag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.texRotateContext

Example:

import pymel.core as pm

# To create a new rotate context:
pm.texRotateContext()
# Result: u'texRotateContext1' #

# To query the position of the manipulator
pm.texRotateContext( 'texRotateContext', q=True, position=True )
# Result: [] #