ジャンプ先: 概要. 戻り値. フラグ. Python 例.

概要

threePointArcCtx([degree=uint], [exists=boolean], [history=boolean], [image1=string], [image2=string], [image3=string], [name=string], [spans=uint])

注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。

threePointArcCtx は、取り消し可能、照会可能、および編集可能です。

threePointArcCtx コマンドは、3 ポイント円弧を作成するための新しいコンテキストを作成します。

戻り値

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

照会モードでは、戻り値のタイプは照会されたフラグに基づきます。

フラグ

degree, exists, history, image1, image2, image3, name, spans
ロング ネーム(ショート ネーム) 引数タイプ プロパティ
degree(d) uint createqueryedit
有効な値は 1 または 3 です。既定は 3 です。
exists(ex) boolean create
指定したオブジェクトが存在するかどうかによって、true または false を返します。他のフラグは無視されます。
history(ch) boolean create
ツール コマンドの場合、対象となるツールのコンストラクション ヒストリをオンにします。
image1(i1) string createqueryedit
コンテキストに関連付けられているツールを表す 3 つの可能なアイコンの中の最初のアイコンです。
image2(i2) string createqueryedit
コンテキストに関連付けられているツールを表す 3 つの可能なアイコンの中の 2 番目のアイコンです。
image3(i3) string createqueryedit
コンテキストに関連付けられているツールを表す 3 つの可能なアイコンの中の 3 番目のアイコンです。
name(n) string create
これがツール コマンドの場合、ツールに適切に名前を付けます。
spans(s) uint createqueryedit
既定は 8 です。

フラグはコマンドの作成モードで表示できます フラグはコマンドの編集モードで表示できます
フラグはコマンドの照会モードで表示できます フラグに複数の引数を指定し、タプルまたはリストとして渡すことができます。

Python 例

import maya.cmds as cmds

# To create a new context that will create curves of degree 1:
cmds.threePointArcCtx( "arcContext", degree=1 )
cmds.setToolTo("arcContext")

# To query the degree of an existing context:
cmds.threePointArcCtx( "arcContext", q=True, degree=True )

# To edit the degree of an existing context:
cmds.threePointArcCtx( "arcContext", e=True, degree=3 )