pymel.core.modeling.polySlideEdge¶
- polySlideEdge(*args, **kwargs)¶
Moves an edge loop selection along the edges connected to the sides of its vertices.
Flags:
Long Name / Short Name Argument Types Properties absolute / a bool 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 int 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 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 bool 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 have multiple arguments, passed either as a tuple or a list. Derived from mel command maya.cmds.polySlideEdge
Example:
import pymel.core as pm # Moves the selected edge loops to the left by 50% of their neighbouring left edges pm.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 pm.polySlideEdge(edgeDirection=2, absolute=True)