ジャンプ先: 概要. 戻り値. 関連. フラグ. Python 例.
torus([axis=[linear, linear, linear]], [caching=boolean], [constructionHistory=boolean], [degree=int], [endSweep=angle], [heightRatio=float], [minorSweep=angle], [name=string], [nodeState=int], [object=boolean], [pivot=[linear, linear, linear]], [polygon=int], [radius=linear], [sections=int], [spans=int], [startSweep=angle], [tolerance=linear], [useTolerance=boolean])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
torus は、取り消し可能、照会可能、および編集可能です。
「torus」コマンドは、新しいトーラスやトーラスを作成するディペンデンシー ノードを作成し、その名前を返します。string[] | オブジェクト名とノード名 |
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
ロング ネーム(ショート ネーム) | 引数タイプ | プロパティ | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
axis(ax)
|
[linear, linear, linear]
|
![]() ![]() ![]() |
||||||||||
|
||||||||||||
caching(cch)
|
boolean
|
![]() ![]() ![]() |
||||||||||
|
||||||||||||
degree(d)
|
int
|
![]() ![]() ![]() |
||||||||||
|
||||||||||||
endSweep(esw)
|
angle
|
![]() ![]() ![]() |
||||||||||
|
||||||||||||
heightRatio(hr)
|
float
|
![]() ![]() ![]() |
||||||||||
|
||||||||||||
minorSweep(msw)
|
angle
|
![]() ![]() ![]() |
||||||||||
|
||||||||||||
nodeState(nds)
|
int
|
![]() ![]() ![]() |
||||||||||
|
||||||||||||
pivot(p)
|
[linear, linear, linear]
|
![]() ![]() ![]() |
||||||||||
|
||||||||||||
radius(r)
|
linear
|
![]() ![]() ![]() |
||||||||||
|
||||||||||||
sections(s)
|
int
|
![]() ![]() ![]() |
||||||||||
|
||||||||||||
spans(nsp)
|
int
|
![]() ![]() ![]() |
||||||||||
|
||||||||||||
startSweep(ssw)
|
angle
|
![]() ![]() ![]() |
||||||||||
|
||||||||||||
tolerance(tol)
|
linear
|
![]() ![]() ![]() |
||||||||||
|
||||||||||||
useTolerance(ut)
|
boolean
|
![]() ![]() ![]() |
||||||||||
|
||||||||||||
共通のフラグ | ||||||||||||
constructionHistory(ch)
|
boolean
|
![]() |
||||||||||
|
||||||||||||
name(n)
|
string
|
![]() |
||||||||||
|
||||||||||||
object(o)
|
boolean
|
![]() |
||||||||||
|
||||||||||||
polygon(po)
|
int
|
![]() |
||||||||||
|
![]() |
![]() |
![]() |
![]() |
import maya.cmds as cmds cmds.torus() cmds.torus( ch=True, radius=10, hr=3 ) cmds.torus( r=5, axis=(1, 1, 1), pivot=(0, 0, 1), ssw='0deg', esw='90deg', msw='45deg' ) cmds.torus( ut=True, tol=0.01 ) # query the torus radius r = cmds.torus( 'nurbsTorus1', r=True, q=True )