移動先: 概要 戻り値 Python 例.

概要

curveMoveEPCtx()

注意: オブジェクト名や引数を表す文字列はカンマで区切ります。これは概要には示されていません。

curveMoveEPCtx は 「元に戻す」が可能、「照会」が可能、「編集」が可能 です。

curveMoveEPCtx コマンドを使うと、マニピュレータを使用してカーブのエディット ポイントを移動する新規のコンテキストを作成できます。エディット ポイントは一度に 1 つしか移動できません。

戻り値

string(新しいコンテキストの名前)

戻り値の型は照会モードでは照会フラグが基になります。

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 #

# Change the selection mode to components, and set edit-point selection mask on only
cmds.selectMode(co=True)
cmds.selectType(allComponents=False, editPoint=True)

# Create a new curve edit point editor context, then switch to it
# You can move the edit points using manipulator
cmds.curveMoveEPCtx('curveMoveEPCtx1')
cmds.setToolTo('curveMoveEPCtx1')