移動先: 概要 戻り値 関連項目. フラグ. 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 )