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 ../../../_images/create.gif
 

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 have multiple arguments, passed either as a tuple or a list.

direction (d) int ../../../_images/create.gif
 
This flag specifies the direction of the slide edge movement 1: is left direction (relative) 0: is right direction (relative) C: Default is 0
edgeDirection (ed) float ../../../_images/create.gif
 
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

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)

Previous topic

pymel.core.modeling.polySewEdge

Next topic

pymel.core.modeling.polySmooth

Core

Core Modules

Other Modules

This Page