Go to: Synopsis. Return value. Python examples.

Synopsis

ctxAbort()

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

ctxAbort is undoable, NOT queryable, and NOT editable.

This command tells the current context to reset itself, losing what has been done so far. If a escape context has been set it then makes that context current.

Return value

None

Python examples

import maya.cmds as cmds

# Create a new particle tool context, then switch to it
cmds.dynParticleCtx('dynParticleCtx1')
cmds.setToolTo('dynParticleCtx1')
# Click the positions where you want to place the particles

# This command will reset the particle tool, clear the particles you have just created
cmds.ctxAbort();