pymel.core.context.texMoveContext

texMoveContext(*args, **kwargs)

This command can be used to create, edit, or query a texture editor move manip context. Note that the above flags control the global behaviour of all texture editor move manip contexts. Changing one context independently is not allowed. Changing a context’s behaviour using the above flags, will change all existing texture editor move manip contexts.

Flags:

Long Name / Short Name Argument Types Properties
editPivotMode / epm bool ../../../_images/query.gif
  Returns true when the manipulator is in edit pivot mode.
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.
snapComponentsRelative / scr bool ../../../_images/query.gif ../../../_images/edit.gif
  Value can be : true or false. If true, while snapping a group of UVs, the relative spacing between them will be preserved. If false, all the UVs will be snapped to the target point
snapPixelMode / spm int ../../../_images/query.gif ../../../_images/edit.gif
  Sets the snapping mode to be the pixel center or upper left corner.
snapValue / sv float ../../../_images/query.gif ../../../_images/edit.gif
  Sets or queries the size of the snapping increment.
tweakMode / twk bool ../../../_images/query.gif ../../../_images/edit.gif
  When true, the manipulator is hidden and highlighted components can be selected and moved in one step using a click-drag interaction. Flag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.texMoveContext

Example:

import pymel.core as pm

# To create a new move context:
pm.texMoveContext()
# Result: u'texMoveContext1' #

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