Go to: Synopsis. Return value. Related. Flags. Python examples.

Synopsis

polyMoveEdge([caching=boolean], [constructionHistory=boolean], [localCenter=int], [localDirection=[linear, linear, linear]], [localDirectionX=linear], [localDirectionY=linear], [localDirectionZ=linear], [localRotate=[angle, angle, angle]], [localRotateX=angle], [localRotateY=angle], [localRotateZ=angle], [localScale=[float, float, float]], [localScaleX=float], [localScaleY=float], [localScaleZ=float], [localTranslate=[linear, linear, linear]], [localTranslateX=linear], [localTranslateY=linear], [localTranslateZ=linear], [name=string], [nodeState=int], [pivot=[linear, linear, linear]], [pivotX=linear], [pivotY=linear], [pivotZ=linear], [random=float], [rotate=[angle, angle, angle]], [rotateX=angle], [rotateY=angle], [rotateZ=angle], [scale=[float, float, float]], [scaleX=float], [scaleY=float], [scaleZ=float], [translate=[linear, linear, linear]], [translateX=linear], [translateY=linear], [translateZ=linear], [worldSpace=boolean])

Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.

polyMoveEdge is undoable, queryable, and editable.

Modifies edges of a polygonal object. Translate, move, rotate or scale edges.

Return value

stringThe node name.

In query mode, return type is based on queried flag.

Related

polyFlipEdge, polyMoveFacet, polyMoveVertex

Flags

caching, constructionHistory, localCenter, localDirection, localDirectionX, localDirectionY, localDirectionZ, localRotate, localRotateX, localRotateY, localRotateZ, localScale, localScaleX, localScaleY, localScaleZ, localTranslate, localTranslateX, localTranslateY, localTranslateZ, name, nodeState, pivot, pivotX, pivotY, pivotZ, random, rotate, rotateX, rotateY, rotateZ, scale, scaleX, scaleY, scaleZ, translate, translateX, translateY, translateZ, worldSpace
Long name (short name) Argument types Properties
worldSpace(ws) boolean createqueryedit
This flag specifies which reference to use. If on : all geometrical values are taken in world reference. If off : all geometrical values are taken in object reference.
C: Default is off.
Global Values
translate(t) [linear, linear, linear] createqueryedit
This flag specifies the translation vector.
C: Default is 0.0 0.0 0.0.
translateX(tx) linear createqueryedit
This flag specifies the X translation vector.
C: Default is 0.0.
translateY(ty) linear createqueryedit
This flag specifies the Y translation vector.
C: Default is 0.0.
translateZ(tz) linear createqueryedit
This flag specifies the Z translation vector.
C: Default is 0.0.
rotate(ro) [angle, angle, angle] createqueryedit
This flag specifies the rotation angles around X, Y, Z.
C: Default is 0.0 0.0 0.0.
rotateX(rx) angle createqueryedit
This flag specifies the rotation angle around X.
C: Default is 0.0.
rotateY(ry) angle createqueryedit
This flag specifies the rotation angle around Y.
C: Default is 0.0.
rotateZ(rz) angle createqueryedit
This flag specifies the rotation angle around Z.
C: Default is 0.0.
scale(s) [float, float, float] createqueryedit
This flag specifies the scaling vector.
C: Default is 1.0 1.0 1.0.
scaleX(sx) float createqueryedit
This flag specifies X for scaling vector.
C: Default is 1.0.
scaleY(sy) float createqueryedit
This flag specifies Y for scaling vector.
C: Default is 1.0.
scaleZ(sz) float createqueryedit
This flag specifies Z for scaling vector.
C: Default is 1.0.
pivot(pvt) [linear, linear, linear] createqueryedit
This flag specifies the pivot for scaling and rotation.
C: Default is 0.0 0.0 0.0.
pivotX(pvx) linear createqueryedit
This flag specifies the X pivot for scaling and rotation.
C: Default is 0.0.
pivotY(pvy) linear createqueryedit
This flag specifies the Y pivot for scaling and rotation.
C: Default is 0.0.
pivotZ(pvz) linear createqueryedit
This flag specifies the Z pivot for scaling and rotation.
C: Default is 0.0.
random(ran) float createqueryedit
This flag specifies the random value for all parameters.
C: Default is 0.0. The range is [-10.0, 10.0].

Local Values

localTranslate(lt) [linear, linear, linear] createqueryedit
This flag specifies the local translation vector.
C: Default is 0.0 0.0 0.0.
localTranslateX(ltx) linear createqueryedit
This flag specifies the local X translation.
C: Default is 0.0.
localTranslateY(lty) linear createqueryedit
This flag specifies the local Y translation.
C: Default is 0.0.
localTranslateZ(ltz) linear createqueryedit
This flag specifies the local Z translation.
C: Default is 0.0.
localRotate(lr) [angle, angle, angle] createqueryedit
This flag specifies the local rotations : (twistRot, slantRot, slantRoll).
C: Default is 0.0 0.0 0.0. Local rotation (twistRot, slantRot, slantRoll).
localRotateX(lrx) angle createqueryedit
This flag specifies local rotation X angle (Twist around normal)
C: Default is 0.0. The range is [0, 360].
localRotateY(lry) angle createqueryedit
This flag specifies local rotation Y angle (Slant Rot around slantAxis).
C: Default is 0.0. The range is [0, 360].
localRotateZ(lrz) angle createqueryedit
This flag specifies local rotation Z angle (Slant Roll of slantAxis).
C: Default is 0.0. The range is [0, 180].
localDirection(ld) [linear, linear, linear] createqueryedit
This flag specifies the X axis for local space.
C: Default is 0.0 0.0 1.0.
localDirectionX(ldx) linear createqueryedit
This flag specifies X coord of the X axis.
C: Default is 0.0.
localDirectionY(ldy) linear createqueryedit
This flag specifies Y coord of the X axis.
C: Default is 0.0.
localDirectionZ(ldz) linear createqueryedit
This flag specifies Z coord of the X axis.
C: Default is 1.0.
localScale(ls) [float, float, float] createqueryedit
This flag specifies the local scaling vector.
C: Default is 1.0 1.0 1.0.
localScaleX(lsx) float createqueryedit
This flag specifies X for local scaling vector.
C: Default is 1.0.
localScaleY(lsy) float createqueryedit
This flag specifies Y for local scaling vector.
C: Default is 1.0.
localScaleZ(lsz) float createqueryedit
This flag specifies Z for local scaling vector.
C: Default is 1.0.
localCenter(lc) int createqueryedit
This flag specifies the local center on the edge : 0 - Middle point, 1 - Start point, 2 - End point.
C: Default is 0 (Middle point).
Common flags
name(n) string create
Give a name to the resulting node.
constructionHistory(ch) boolean createquery
Turn the construction history on or off (where applicable). If construction history is on then the corresponding node will be inserted into the history chain for the mesh. If construction history is off then the operation will be performed directly on the object.
Note: If the object already has construction history then this flag is ignored and the node will always be inserted into the history chain.
caching(cch) boolean createedit
Toggle caching for all attributes so that no recomputation is needed
nodeState(nds) int createqueryedit
Defines how to evaluate the node.
  • 0: Normal
  • 1: PassThrough
  • 2: Blocking
  • 3: Internally disabled. Will return to Normal state when enabled
  • 4: Internally disabled. Will return to PassThrough state when enabled
  • 5: Internally disabled. Will return to Blocking state when enabled

Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can have multiple arguments, passed either as a tuple or a list.

Python examples

import maya.cmds as cmds

# Create a sphere.
cmds.polySphere( n='plg', r=5 )

cmds.select( 'plg.e[200:219]', 'plg.e[560:599]' )
# Translate selected edges along Z in local coordinates.
cmds.polyMoveEdge( ltz=1.0 )

# Scale selected edges by (0.5 0.5 0.5)
cmds.polyMoveEdge( 'plg.e[100:119]', s=(0.5, 0.5, 0.5) )