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