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


untrim( surface , [caching=boolean], [constructionHistory=boolean], [curveOnSurface=boolean], [name=string], [nodeState=int], [object=boolean], [replaceOriginal=boolean], [untrimAll=boolean])

Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.

untrim is undoable, queryable, and editable.

Untrim the surface.

Return value

string[]Object name and node name

In query mode, return type is based on queried flag.


intersect, projectCurve, trim


caching, constructionHistory, curveOnSurface, name, nodeState, object, replaceOriginal, untrimAll
Long name (short name) Argument types Properties
Advanced flags
caching(cch) boolean createqueryedit
Modifies the node caching mode. See the node documentation for more information.
Note: For advanced users only.
nodeState(nds) int createqueryedit
Modifies the node state. See the node documentation for more information.
Note: For advanced users only.
Common flags
name(n) string create
Sets the name of the newly-created node. If it contains namespace path, the new node will be created under the specified namespace; if the namespace does not exist, it will be created.
constructionHistory(ch) boolean create
Turn the construction history on or off
object(o) boolean create
Create the result, or just the dependency node
replaceOriginal(rpo) boolean create
Create "in place" (i.e., replace)
curveOnSurface(cos) boolean create
If possible, create 2D curve as a result
untrimAll(all) boolean queryedit
if true, untrim all the trims for the surface else untrim only the last trim

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

# Untrim surface with history.
cmds.untrim( 'surface', ch=True )

# Untrims surface without history.
cmds.untrim( 'surface', ch=False )