Go to: Synopsis. Return value. Python examples.
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
ctxCompletion is undoable, NOT queryable, and NOT editable.This command tells the current context to finish what it is doing and create any objects that is is working on.
import maya.cmds as cmds # Create a curve cmds.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: curve1 # # Create a new curve editor context to modify the curve, then switch to it # You can modify the curve using the manipulator handle cmds.curveEditorCtx('curveEditorCtx1') cmds.setToolTo('curveEditorCtx1') # This command ends curve editing, the manipulator handle will disappear, leaving the modified curve cmds.ctxCompletion()