ジャンプ先: 概要. 戻り値. Python 例.

概要

ctxCompletion()

注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。

ctxCompletion は、取り消し可能、照会不可能、および編集不可能です。

このコマンドを使うと、現在のコンテキストが実行中のことを終了し、作業しているすべてのオブジェクトが作成されます。

戻り値

なし

Python 例

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()