ジャンプ先: 概要. 戻り値. フラグ. Python 例.
curveSketchCtx(
[object]
, [degree=uint], [exists=boolean], [history=boolean], [image1=string], [image2=string], [image3=string], [name=string])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
curveSketchCtx は、取り消し可能、照会可能、および編集可能です。
curveSketchCtx コマンドは新規のカーブ スケッチ コンテキストを作成し、「ペンシル コンテキスト」としても知られます。
| string | (新しいカーブ スケッチ コンテキストの名前) |
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
degree, exists, history, image1, image2, image3, name
| ロング ネーム(ショート ネーム) |
引数タイプ |
プロパティ |
|
degree(d)
|
uint
|
 
|
|
|
exists(ex)
|
boolean
|
|
|
指定したオブジェクトが存在するかどうかによって、true または false を返します。他のフラグは無視されます。
|
|
history(ch)
|
boolean
|
|
|
ツール コマンドの場合、対象となるツールのコンストラクション ヒストリをオンにします。
|
|
image1(i1)
|
string
|
 
|
|
コンテキストに関連付けられているツールを表す 3 つの可能なアイコンの中の最初のアイコンです。
|
|
image2(i2)
|
string
|
 
|
|
コンテキストに関連付けられているツールを表す 3 つの可能なアイコンの中の 2 番目のアイコンです。
|
|
image3(i3)
|
string
|
 
|
|
コンテキストに関連付けられているツールを表す 3 つの可能なアイコンの中の 3 番目のアイコンです。
|
|
name(n)
|
string
|
|
|
これがツール コマンドの場合、ツールに適切に名前を付けます。
|
|
フラグはコマンドの作成モードで表示できます
|
フラグはコマンドの編集モードで表示できます
|
フラグはコマンドの照会モードで表示できます
|
フラグに複数の引数を指定し、タプルまたはリストとして渡すことができます。
|
import maya.cmds as cmds
# To create a new sketch context, which creates degree 3 curves:
cmds.curveSketchCtx( "pencilContext", degree=3 )
cmds.setToolTo("pencilContext")
# To query the degree of an existing context:
cmds.curveSketchCtx( "pencilContext",q=True, degree=True )
# To edit the degree of an existing context:
cmds.curveSketchCtx( "pencilContext", e=True, degree=1 )