ジャンプ先: 概要. 戻り値. 関連. フラグ. Python 例.
sphere([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])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
sphere は、取り消し可能、照会可能、および編集可能です。
sphere コマンドは、新しい球を作成します。球の各方向のスパン数は useTolerance アトリビュートによって決まります。-ut が true の場合、-tolerance アトリビュートが使用されます。-ut が false の場合は、-sections アトリビュートが使用されます。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 # Create sphere with radius 10 cmds.sphere( r=10 ) # Query the radius of the new sphere r = cmds.sphere( 'nurbsSphere1', q=True, r=True ) # Create half sphere cmds.sphere( ssw=0, esw=180 ) # Use tolerance to determine how many spans the new sphere has cmds.sphere( ut=True, tol=0.01 ) # Use sections to determine how many spans the new sphere has cmds.sphere( ut=False, s=8 )