ジャンプ先: 概要. 戻り値. 関連. フラグ. Python 例.
polyPyramid([axis=[linear, linear, linear]], [caching=boolean], [constructionHistory=boolean], [createUVs=int], [name=string], [nodeState=int], [numberOfSides=int], [numderOfSides=int], [object=boolean], [sideLength=linear], [subdivisionsCaps=int], [subdivisionsHeight=int], [texture=boolean])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
polyPyramid は、取り消し可能、照会可能、および編集可能です。
pyramid コマンドは、新しいポリゴン ピラミッドを作成します。
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
polyCube, polyCylinder, polyPlane, polyPrism, polySphere, polyTorus
axis, caching, constructionHistory, createUVs, name, nodeState, numberOfSides, numderOfSides, object, sideLength, subdivisionsCaps, subdivisionsHeight, texture
フラグはコマンドの作成モードで表示できます
|
フラグはコマンドの編集モードで表示できます
|
フラグはコマンドの照会モードで表示できます
|
フラグに複数の引数を指定し、タプルまたはリストとして渡すことができます。
|
import maya.cmds as cmds
# Create a pyramid, with 10 subdivisions on the caps,
# 15 subdivisions along the height and num ber of sides 5,
# the side length of the pyramid is 20, the height of the pyramid is 10.
cmds.polyPyramid( sc=10, sh=15, ns=5, w=20)
# Create a pyramid, called "mypyramid", olong height there are 5 subdivisions
# and with 5 sides.
cmds.polyPyramid( n='mypyramid', sh=5, ns=5, sc=5)
# Query the side length of "mypyramid"
w = cmds.polyPyramid( 'mypyramid', q=True, w=True )