Go to: Synopsis. Return value. Flags. Python examples.

Synopsis

texWinToolCtx([boxzoom=boolean], [dolly=boolean], [track=boolean])

Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.

texWinToolCtx is undoable, queryable, and editable.

This class creates a context for the View Tools "track", "dolly", and "box zoom" in the texture window.

Return value

stringContext name

In query mode, return type is based on queried flag.

Flags

boxzoom, dolly, track
Long name (short name) Argument types Properties
dolly(do) boolean createqueryedit
Dollies the view
track(tr) boolean createqueryedit
Tracks the view
boxzoom(bz) boolean createqueryedit
Perform Box Zoom

Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can have multiple arguments, passed either as a tuple or a list.

Python examples

import maya.cmds as cmds

# Create a new texture window tool context, set this tool to dolly in the texture window, then switch to it
cmds.texWinToolCtx('texWinToolCtx1', do=True)
cmds.setToolTo('texWinToolCtx1')