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

概要

curveCVCtx([degree=uint], [multEndKnots=boolean], [uniform=boolean])

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

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

curveCVCtx コマンドを使うと、制御頂点(CV)を配置してカーブを作成する新しいコンテキストを作成できます。

戻り値

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

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

フラグ

degree, multEndKnots, uniform
ロング ネーム(ショート ネーム) 引数型 プロパティ
degree(d) uint
有効な値は 1、2、3、5 または 7 です。デフォルトは次数 3 です。
multEndKnots(me) boolean
デフォルトは true です。false は、カーブが終点 CV(制御頂点)を通らないことを意味します。
uniform(un) boolean
デフォルトは true で、均一パラメータ配置が使用されます。 false は、弦長パラメータ配置を意味します。

: コマンドの作成モードで使用可能なフラグ : コマンドの編集モードで使用可能なフラグ
: コマンドの照会モードで使用可能なフラグ : タプルまたはリストとして渡された複数の引数を持てるフラグ

Python 例

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 )