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