pymel.core.context.texScaleContext

static context.texScaleContext(*args, **kwargs)

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

Flags:
Long name (short name) Argument Types Properties
exists (ex) bool  
   
image1 (i1) unicode  
   
image2 (i2) unicode  
   
image3 (i3) unicode  
   
position (p) bool ../../../_images/query.gif
 
Returns the current position of the manipulator Flag can have multiple arguments, passed either as a tuple or a list.
snap (s) bool  
   
snapRelative (sr) bool  
   
snapValue (sv) float  
   

Derived from mel command maya.cmds.texScaleContext

Example:

import pymel.core as pm

# To create a new scale context:
pm.texScaleContext()
# Result: u'texScaleContext1' #

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

Previous topic

pymel.core.context.texRotateContext

Next topic

pymel.core.context.texSelectContext

Core

Core Modules

Other Modules

This Page