移動先: 概要 戻り値 関連項目. フラグ. Python 例.
polyMoveUV([caching=boolean], [constructionHistory=boolean], [name=string], [nodeState=int], [pivot=[float, float]], [pivotU=float], [pivotV=float], [random=float], [rotationAngle=angle], [scale=[float, float]], [scaleU=float], [scaleV=float], [translate=[float, float]], [translateU=float], [translateV=float])
注意: オブジェクト名や引数を表す文字列はカンマで区切ります。これは概要には示されていません。
polyMoveUV は 「元に戻す」が可能、「照会」が可能、「編集」が可能 です。
2D 空間で選択した UV 座標を移動します。
選択した UV が調整されるため、イメージのオブジェクトへのマップ方法もそれに従って変化します。
このコマンドでは、オブジェクトの 3D ジオメトリを変更せずに UV 値が操作されます。
戻り値の型は照会モードでは照会フラグが基になります。
polyClipboard, polyCylindricalProjection, polyEditUV, polyForceUV, polyMapCut, polyMapDel, polyMapSew, polyMoveFacetUV, polyPlanarProjection, polyProjection, polySphericalProjection, polyUVSet, untangleUV
caching, constructionHistory, name, nodeState, pivot, pivotU, pivotV, random, rotationAngle, scale, scaleU, scaleV, translate, translateU, translateV
: コマンドの作成モードで使用可能なフラグ
|
: コマンドの編集モードで使用可能なフラグ
|
: コマンドの照会モードで使用可能なフラグ
|
: タプルまたはリストとして渡された複数の引数を持てるフラグ
|
import maya.cmds as cmds
# Opening up the textureView will make this example easier to visualize.
# Create a plane and select it.
cmds.polyPlane( n='plg', sx=5, sy=5, w=10, h=10 )
cmds.select( 'plg' )
# Display map borders.
cmds.polyOptions( ao=True, dmb=True )
# Translate selected UVs as the vector (0.0, 1.0).
cmds.polyMoveUV( 'plgShape.map[30:35]', tu=0.0, tv=1.0 )
# Scale selected UVs as the scaling (0.5, 0.5);
cmds.polyMoveUV( 'plgShape.map[30:35]', su=0.5, sv=0.5 )