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

Synopsis

polyMoveVertex([caching=boolean], [constructionHistory=boolean], [localDirection=[linear, linear, linear]], [localDirectionX=linear], [localDirectionY=linear], [localDirectionZ=linear], [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.

polyMoveVertex is undoable, queryable, and editable.

Modifies vertices of a polygonal object. Translate, rotate or scale vertices in local or world space.

Return value

stringThe node name.

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

Related

polyFlipEdge, polyMoveEdge, polyMoveFacet

Flags

caching, constructionHistory, localDirection, localDirectionX, localDirectionY, localDirectionZ, 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
localDirection(ld) [linear, linear, linear] createqueryedit
This flag specifies the X axis for local space.
C: Default is 0.0 0.0 1.0.
Q: When queried, this flag returns a float[3].
localDirectionX(ldx) linear createqueryedit
This flag specifies X coord for thr X axis.
C: Default is 0.0.
Q: When queried, this flag returns a float.
localDirectionY(ldy) linear createqueryedit
This flag specifies Y coord for thr X axis.
C: Default is 0.0.
Q: When queried, this flag returns a float.
localDirectionZ(ldz) linear createqueryedit
This flag specifies Z coord for thr X axis.
C: Default is 1.0.
Q: When queried, this flag returns a float.
localTranslate(lt) [linear, linear, linear] createqueryedit
Local translation vector.
C: Default is 0.0 0.0 0.0.
Q: When queried, this flag returns a float[3].
localTranslateX(ltx) linear createqueryedit
Local translation X coord.
C: Default is 0.0.
Q: When queried, this flag returns a float.
localTranslateY(lty) linear createqueryedit
Local translation Y coord.
C: Default is 0.0.
Q: When queried, this flag returns a float.
localTranslateZ(ltz) linear createqueryedit
Local translation Z coord : Move along the vertex normal.
C: Default is 0.0.
Q: When queried, this flag returns a float.
pivot(pvt) [linear, linear, linear] createqueryedit
This flag specifies the pivot for scaling and rotation.
C: Default is 0.0 0.0 0.0.
Q: When queried, this flag returns a float[3].
pivotX(pvx) linear createqueryedit
This flag specifies the X pivot for scaling and rotation.
C: Default is 0.0.
Q: When queried, this flag returns a float.
pivotY(pvy) linear createqueryedit
This flag specifies the Y pivot for scaling and rotation.
C: Default is 0.0.
Q: When queried, this flag returns a float.
pivotZ(pvz) linear createqueryedit
This flag specifies the Z pivot for scaling and rotation.
C: Default is 0.0.
Q: When queried, this flag returns a float.

Local Values

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].
Q: When queried, this flag returns a float.
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.
Q: When queried, this flag returns a float[3].
rotateX(rx) angle createqueryedit
This flag specifies the rotation angle around X.
C: Default is 0.0.
Q: When queried, this flag returns a float.
rotateY(ry) angle createqueryedit
This flag specifies the rotation angle around Y.
C: Default is 0.0.
Q: When queried, this flag returns a float.
rotateZ(rz) angle createqueryedit
This flag specifies the rotation angle around Z.
C: Default is 0.0.
Q: When queried, this flag returns a float.
scale(s) [float, float, float] createqueryedit
This flag specifies the scaling vector.
C: Default is 1.0 1.0 1.0.
Q: When queried, this flag returns a float[3].
scaleX(sx) float createqueryedit
This flag specifies X for scaling vector.
C: Default is 1.0.
Q: When queried, this flag returns a float.
scaleY(sy) float createqueryedit
This flag specifies Y for scaling vector.
C: Default is 1.0.
Q: When queried, this flag returns a float.
scaleZ(sz) float createqueryedit
This flag specifies Z for scaling vector.
C: Default is 1.0.
Q: When queried, this flag returns a float.
translate(t) [linear, linear, linear] createqueryedit
This flag specifies the translation vector.
C: Default is 0.0 0.0 0.0.
Q: When queried, this flag returns a float[3].
translateX(tx) linear createqueryedit
This flag specifies the X translation vector.
C: Default is 0.0.
Q: When queried, this flag returns a float.
translateY(ty) linear createqueryedit
This flag specifies the Y translation vector.
C: Default is 0.0.
Q: When queried, this flag returns a float.
translateZ(tz) linear createqueryedit
This flag specifies the Z translation vector.
C: Default is 0.0.
Q: When queried, this flag returns a float.
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".
Q: When queried, this flag returns an int.

Global Values

Common flags
caching(cch) boolean createedit
Toggle caching for all attributes so that no recomputation is needed.
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.
name(n) string create
Give a name to the resulting node.
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( r=5, n='plg' )

# Move vertices as the scaling vector (1.0, 1.5, 1.0).
cmds.polyMoveVertex( 'plg.vtx[200:379]', 'plg.vtx[381]', s=(1.0, 1.5, 1.0) )

# Translate vertices as the vector (0.0, 2.0, 0.0).
cmds.polyMoveVertex( 'plg.vtx[200:379]', 'plg.vtx[381]', ty=2.0 )