ジャンプ先: 概要. 戻り値. 関連. フラグ. Python 例.
polyPrism([axis=[linear, linear, linear]], [caching=boolean], [constructionHistory=boolean], [createUVs=int], [length=linear], [name=string], [nodeState=int], [numberOfSides=int], [numderOfSides=int], [object=boolean], [sideLength=linear], [subdivisionsCaps=int], [subdivisionsHeight=int], [texture=int])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
polyPrism は、取り消し可能、照会可能、および編集可能です。
prism コマンドは、新しいポリゴン プリズムを作成します。| string[] | オブジェクト名とノード名 |
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
| ロング ネーム(ショート ネーム) | 引数タイプ | プロパティ | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Common poly creation operation flags | ||||||||||||
axis(ax)
|
[linear, linear, linear]
|
|
||||||||||
|
||||||||||||
caching(cch)
|
boolean
|
|
||||||||||
|
||||||||||||
constructionHistory(ch)
|
boolean
|
|
||||||||||
|
||||||||||||
createUVs(cuv)
|
int
|
|
||||||||||
|
||||||||||||
length(l)
|
linear
|
|
||||||||||
|
||||||||||||
name(n)
|
string
|
|
||||||||||
|
||||||||||||
nodeState(nds)
|
int
|
|
||||||||||
|
||||||||||||
numberOfSides(ns)
|
int
|
|
||||||||||
|
||||||||||||
numderOfSides(nsi)
|
int
|
|
||||||||||
|
||||||||||||
object(o)
|
boolean
|
|
||||||||||
|
||||||||||||
sideLength(w)
|
linear
|
|
||||||||||
|
||||||||||||
subdivisionsCaps(sc)
|
int
|
|
||||||||||
|
||||||||||||
subdivisionsHeight(sh)
|
int
|
|
||||||||||
|
||||||||||||
texture(tx)
|
int
|
|
||||||||||
|
||||||||||||
import maya.cmds as cmds # Create a prism, with 10 subdivisions on the caps, # and 15 subdivisions along the length, # the edge length of the prism is 20. cmds.polyPrism ( sc=10, sh=15, w=20) # Create a prism, called "myprism", on each direction there are 5 subdivisions. cmds.polyPrism( n='myprism', sc=5, sh=5)