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

Synopsis

ctxEditMode([buttonDown=boolean], [buttonUp=boolean])

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

ctxEditMode is undoable, NOT queryable, and NOT editable.

This command tells the current context to switch edit modes.
It acts as a toggle.

Return value

None

Flags

buttonDown, buttonUp
Long name (short name) Argument types Properties
buttonDown(btd) boolean create
Edit mode is being invoked from a hotkey press event.
buttonUp(btu) boolean create
Edit mode is being invoked from a hotkey release event.

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 poly cube
cmds.polyCube(w=2, h=2, d=2, n='pCube1')

# Create a new rotate manip context, then switch to it.
cmds.manipRotateContext('manipRotateContext1')
cmds.setToolTo('manipRotateContext1')

# Switch to edit mode to change pivots
cmds.ctxEditMode()