ジャンプ先: 概要. 戻り値. 関連. フラグ. Python 例.
polyPoke(
selectionList
, [caching=boolean], [constructionHistory=boolean], [localTranslate=[linear, linear, linear]], [localTranslateX=linear], [localTranslateY=linear], [localTranslateZ=linear], [name=string], [nodeState=int], [translate=[linear, linear, linear]], [translateX=linear], [translateY=linear], [translateZ=linear], [worldSpace=boolean])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
polyPoke は、取り消し可能、照会可能、および編集可能です。
選択したフェースの中心に新しい頂点を作成し、フェースの他の頂点と接続します。
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
polySubdivideFacet
caching, constructionHistory, localTranslate, localTranslateX, localTranslateY, localTranslateZ, name, nodeState, translate, translateX, translateY, translateZ, worldSpace
フラグはコマンドの作成モードで表示できます
|
フラグはコマンドの編集モードで表示できます
|
フラグはコマンドの照会モードで表示できます
|
フラグに複数の引数を指定し、タプルまたはリストとして渡すことができます。
|
import maya.cmds as cmds
# To poke all the faces of a polyCube...
#
cmds.polyCube( w=1, h=1, d=1, sx=1, sy=1, sz=1, ax=(0, 1, 0), tx=1, ch=1, n='pCube' )
cmds.polyPoke( 'pCube.f[0:5]', ch=1 )
# To poke all the faces of a polyCube, and pull the
# new vertices by one unit along the face normal
#
cmds.polyCube( w=1, h=1, d=1, sx=1, sy=1, sz=1, ax=(0, 1, 0), tx=1, ch=1, n='pCubePull' )
cmds.polyPoke( 'pCubePull.f[0:5]', ltx=0, lty=0, ltz=1, ch=1 )