Go to: Synopsis. Return value. Flags. Python examples.
polySlideEdge([absolute=boolean], [direction=uint], [edgeDirection=float])
Note: Strings representing object names and
arguments must be separated by commas. This is not depicted in the
synopsis.
polySlideEdge is undoable, NOT queryable, and NOT
editable.
Moves an edge loop selection along the edges connected to the sides
of its vertices.
absolute, direction, edgeDirection
Long name (short name) |
Argument types |
Properties |
edgeDirection(ed) |
float |
 |
|
This flag specifies the relative percentage to move along the
edges on either side of the vertices along the edge loop
C: Default is 0.0 |
|
direction(d) |
uint |
 |
|
This flag specifies the direction of the slide edge movement 1:
is left direction (relative) 0: is right direction (relative)
C: Default is 0 |
|
absolute(a) |
boolean |
 |
|
This flag specifies whether or not the command uses absolute
mode If in absolute then all vertices will move the same distance
(the specified percentage of the smallest edge)
C: Default is off |
|
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. |
import maya.cmds as cmds
# Moves the selected edge loops to the left by 50% of their neighbouring left edges
cmds.polySlideEdge(edgeDirection=0.5, direction=1)
# Moves the selected edge loops to the right by 200% of the length of the shortest neighbouring right edge
cmds.polySlideEdge(edgeDirection=2, absolute=True)