text: Go to: Synopsis. Return value. Related. Flags. Python examples.
  trim(
  objects
  , [caching=boolean], [constructionHistory=boolean], [locatorU=float], [locatorV=float], [name=string], [nodeState=int], [object=boolean], [selected=int], [shrink=boolean], [tolerance=linear])
  Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
  trim is undoable, queryable, and editable.This command trims a surface to its curves on surface by first splitting the surface and then selecting which regions to keep or discard.
  In query mode, return type is based on queried flag.
  import maya.cmds as cmds # Keep all selected regions cmds.trim( sl=0 ) # Discard all selected regions cmds.trim( sl=1 ) # shrink the underlying surface to just outside the # outermost boundary curve cmds.trim( sh=1 )