ジャンプ先: 概要. 戻り値. フラグ. Python 例.
curveMoveEPCtx([exists=boolean], [image1=string], [image2=string], [image3=string])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
curveMoveEPCtx は、取り消し可能、照会可能、および編集可能です。
curveMoveEPCtx コマンドを使うと、マニピュレータを使用してカーブのエディット ポイントを移動する新規のコンテキストを作成できます。エディット ポイントは一度に 1 つしか移動できません。
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
exists, image1, image2, image3
| ロング ネーム(ショート ネーム) |
引数タイプ |
プロパティ |
|
exists(ex)
|
boolean
|
|
|
指定したオブジェクトが存在するかどうかによって、true または false を返します。他のフラグは無視されます。
|
|
image1(i1)
|
string
|
 
|
|
コンテキストに関連付けられているツールを表す 3 つの可能なアイコンの中の最初のアイコンです。
|
|
image2(i2)
|
string
|
 
|
|
コンテキストに関連付けられているツールを表す 3 つの可能なアイコンの中の 2 番目のアイコンです。
|
|
image3(i3)
|
string
|
 
|
|
コンテキストに関連付けられているツールを表す 3 つの可能なアイコンの中の 3 番目のアイコンです。
|
|
フラグはコマンドの作成モードで表示できます
|
フラグはコマンドの編集モードで表示できます
|
フラグはコマンドの照会モードで表示できます
|
フラグに複数の引数を指定し、タプルまたはリストとして渡すことができます。
|
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')