ctxCompletion()
注意: オブジェクト名や引数を表す文字列はカンマで区切ります。これは概要には示されていません。
ctxCompletion は 「元に戻す」が可能、「照会」が不可能、「編集」が不可能 です。
このコマンドを使うと、カレント コンテキストが実行中のことを終了し、作業しているすべてのオブジェクトが作成されます。なし
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()