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

Synopsis

polySlideEdge([absolute=boolean], [direction=uint], [edgeDirection=float], [symmetry=boolean])

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.

Return value

booleanSuccess value

Flags

absolute, direction, edgeDirection, symmetry
Long name (short name) Argument types Properties
absolute(a) boolean create
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
direction(d) uint create
This flag specifies the direction of the slide edge movement 0: is left direction (relative) 1: is right direction (relative) 2: is normal direction (relative)
C: Default is 0
edgeDirection(ed) float create
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
symmetry(sym) boolean create
This flag specifies whether or not the command will do a symmetrical slide. Only takes effect when symmetry is enabled.
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.

Python examples

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)