ジャンプ先: 概要. 戻り値. フラグ. Python 例.
curveEPCtx([bezier=boolean], [degree=uint], [exists=boolean], [history=boolean], [image1=string], [image2=string], [image3=string], [name=string], [preserveShape=boolean], [preserveShapeFraction=float], [refit=boolean], [uniform=boolean])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
curveEPCtx は、取り消し可能、照会可能、および編集可能です。
curveEPCtx コマンドを使用すると、エディット ポイントを配置してカーブを作成する新しいコンテキストを作成できます。| string | (新しいコンテキストの名前) |
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
| ロング ネーム(ショート ネーム) | 引数タイプ | プロパティ | ||
|---|---|---|---|---|
bezier(bez)
|
boolean
|
|
||
|
||||
degree(d)
|
uint
|
|
||
|
||||
exists(ex)
|
boolean
|
|
||
|
||||
history(ch)
|
boolean
|
|
||
|
||||
image1(i1)
|
string
|
|
||
|
||||
image2(i2)
|
string
|
|
||
|
||||
image3(i3)
|
string
|
|
||
|
||||
name(n)
|
string
|
|
||
|
||||
preserveShape(ps)
|
boolean
|
|
||
|
||||
preserveShapeFraction(pf)
|
float
|
|
||
|
||||
refit(rf)
|
boolean
|
|
||
|
||||
uniform(un)
|
boolean
|
|
||
|
||||
import maya.cmds as cmds # To create a new context that will create curves of degree 5: cmds.curveEPCtx( degree=5 ) # To query the degree of an existing context: cmds.curveEPCtx( 'curveEPCtx1', q=True, degree=True ) # To edit the degree of an existing context: cmds.curveEPCtx( 'curveEPCtx1', e=True, degree=7 )