pymel.core.context.ctxCompletion

ctxCompletion(*args, **kwargs)

This command tells the current context to finish what it is doing and create any objects that is is working on.

Derived from mel command maya.cmds.ctxCompletion

Example:

import pymel.core as pm

# Create a curve
pm.curve(p=[(0, 0, 0), (3, 5, 6), (5, 6, 7), (9, 9, 9), (12, 10, 2)], k=[0,0,0,1,2,2,2])
# Result: nt.Transform(u'curve1') #

# Create a new curve editor context to modify the curve, then switch to it
# You can modify the curve using the manipulator handle
pm.curveEditorCtx('curveEditorCtx1')
# Result: u'curveEditorCtx1' #
pm.setToolTo('curveEditorCtx1')

# This command ends curve editing, the manipulator handle will disappear, leaving the modified curve
pm.ctxCompletion()

Previous topic

pymel.core.context.ctxAbort

Next topic

pymel.core.context.ctxData

Core

Core Modules

Other Modules

This Page