ジャンプ先: 概要. 戻り値. 関連. フラグ. Python 例.
polyPrimitive([axis=[linear, linear, linear]], [caching=boolean], [constructionHistory=boolean], [createUVs=int], [name=string], [nodeState=int], [object=boolean], [polyType=int], [radius=linear], [sideLength=linear], [texture=int])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
polyPrimitive は、取り消し可能、照会可能、および編集可能です。
ポリゴン プリミティブを作成します| string[] | オブジェクト名とノード名 |
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
| ロング ネーム(ショート ネーム) | 引数タイプ | プロパティ | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Flags from nodes | ||||||||||||
axis(ax)
|
[linear, linear, linear]
|
|
||||||||||
|
||||||||||||
createUVs(cuv)
|
int
|
|
||||||||||
|
||||||||||||
polyType(pt)
|
int
|
|
||||||||||
|
||||||||||||
radius(r)
|
linear
|
|
||||||||||
|
||||||||||||
sideLength(l)
|
linear
|
|
||||||||||
|
||||||||||||
texture(tx)
|
int
|
|
||||||||||
|
||||||||||||
| Common poly creation operation flags | ||||||||||||
caching(cch)
|
boolean
|
|
||||||||||
|
||||||||||||
constructionHistory(ch)
|
boolean
|
|
||||||||||
|
||||||||||||
name(n)
|
string
|
|
||||||||||
|
||||||||||||
nodeState(nds)
|
int
|
|
||||||||||
|
||||||||||||
object(o)
|
boolean
|
|
||||||||||
|
||||||||||||
import maya.cmds as cmds # Create a soccerBall with radius 1 side length 0.4037 cmds.polyPrimitive( r=1, l=0.4036, pt=0)