pymel.core.modeling.polyMoveEdge

static modeling.polyMoveEdge(*args, **kwargs)

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

Flags:
Long name (short name) Argument Types Properties
caching (cch) bool ../../../_images/create.gif ../../../_images/edit.gif
 
Toggle caching for all attributes so that no recomputation is needed
constructionHistory (ch) bool ../../../_images/create.gif ../../../_images/query.gif
 

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.

gain (ga) float  
   
localCenter (lc) int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 

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

localDirection (ld) float, float, float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
This flag specifies the X axis for local space. C: Default is 0.0 0.0 1.0.
localDirectionX (ldx) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
This flag specifies X coord of the X axis. C: Default is 0.0.
localDirectionY (ldy) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
This flag specifies Y coord of the X axis. C: Default is 0.0.
localDirectionZ (ldz) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
This flag specifies Z coord of the X axis. C: Default is 1.0.
localRotate (lr) float, float, float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
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) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
This flag specifies local rotation X angle (Twist around normal) C: Default is 0.0. The range is [0, 360].
localRotateY (lry) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
This flag specifies local rotation Y angle (Slant Rot around slantAxis). C: Default is 0.0. The range is [0, 360].
localRotateZ (lrz) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
This flag specifies local rotation Z angle (Slant Roll of slantAxis). C: Default is 0.0. The range is [0, 180].
localScale (ls) float, float, float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
This flag specifies the local scaling vector. C: Default is 1.0 1.0 1.0.
localScaleX (lsx) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
This flag specifies X for local scaling vector. C: Default is 1.0.
localScaleY (lsy) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
This flag specifies Y for local scaling vector. C: Default is 1.0.
localScaleZ (lsz) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
This flag specifies Z for local scaling vector. C: Default is 1.0.
localTranslate (lt) float, float, float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
This flag specifies the local translation vector. C: Default is 0.0 0.0 0.0.
localTranslateX (ltx) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
This flag specifies the local X translation. C: Default is 0.0.
localTranslateY (lty) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
This flag specifies the local Y translation. C: Default is 0.0.
localTranslateZ (ltz) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
This flag specifies the local Z translation. C: Default is 0.0.
name (n) unicode ../../../_images/create.gif
 
Give a name to the resulting node.
nodeState (nds) int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 

Defines how to evaluate the node. 0: Normal1: PassThrough2: Blocking3: Internally disabled. Will return to Normal state when enabled4: Internally disabled. Will return to PassThrough state when enabled5: Internally disabled. Will return to Blocking state when enabledFlag can have multiple arguments, passed either as a tuple or a list.

pivot (pvt) float, float, float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
This flag specifies the pivot for scaling and rotation. C: Default is 0.0 0.0 0.0.
pivotX (pvx) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
This flag specifies the X pivot for scaling and rotation. C: Default is 0.0.
pivotY (pvy) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
This flag specifies the Y pivot for scaling and rotation. C: Default is 0.0.
pivotZ (pvz) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
This flag specifies the Z pivot for scaling and rotation. C: Default is 0.0.
random (ran) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
This flag specifies the random value for all parameters. C: Default is 0.0. The range is [-10.0, 10.0]. Local Values
rotate (ro) float, float, float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
This flag specifies the rotation angles around X, Y, Z. C: Default is 0.0 0.0 0.0.
rotateX (rx) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
This flag specifies the rotation angle around X. C: Default is 0.0.
rotateY (ry) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
This flag specifies the rotation angle around Y. C: Default is 0.0.
rotateZ (rz) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
This flag specifies the rotation angle around Z. C: Default is 0.0.
scale (s) float, float, float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
This flag specifies the scaling vector. C: Default is 1.0 1.0 1.0.
scaleX (sx) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
This flag specifies X for scaling vector. C: Default is 1.0.
scaleY (sy) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
This flag specifies Y for scaling vector. C: Default is 1.0.
scaleZ (sz) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
This flag specifies Z for scaling vector. C: Default is 1.0.
translate (t) float, float, float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
This flag specifies the translation vector. C: Default is 0.0 0.0 0.0.
translateX (tx) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
This flag specifies the X translation vector. C: Default is 0.0.
translateY (ty) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
This flag specifies the Y translation vector. C: Default is 0.0.
translateZ (tz) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
This flag specifies the Z translation vector. C: Default is 0.0.
worldSpace (ws) bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 

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

Derived from mel command maya.cmds.polyMoveEdge

Example:

import pymel.core as pm

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

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

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

Previous topic

pymel.core.modeling.polyMirrorFace

Next topic

pymel.core.modeling.polyMoveFacet

Core

Core Modules

Other Modules

This Page