This command trims a surface to its curves on surface by first splitting the surface and then selecting which regions to keep or discard.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
caching (cch) | bool | ||
|
|||
constructionHistory (ch) | bool | ||
|
|||
locatorU (lu) | float | ||
|
|||
locatorV (lv) | float | ||
|
|||
name (n) | unicode | ||
|
|||
nodeState (nds) | int | ||
|
|||
object (o) | bool | ||
|
|||
replaceOriginal (rpo) | bool | ||
selected (sl) | int | ||
|
|||
shrink (sh) | bool | ||
|
|||
tolerance (tol) | float | ||
|
Derived from mel command maya.cmds.trim
Example:
import pymel.core as pm
import maya.cmds as cmds
# Keep all selected regions
pm.trim( sl=0 )
# Discard all selected regions
pm.trim( sl=1 )
# shrink the underlying surface to just outside the
# outermost boundary curve
pm.trim( sh=1 )