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


extendSurface( surface [surface] , [caching=boolean], [constructionHistory=boolean], [distance=linear], [extendDirection=int], [extendMethod=int], [extendSide=int], [extensionType=int], [join=boolean], [name=string], [nodeState=int], [object=boolean], [replaceOriginal=boolean])

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

extendSurface is undoable, queryable, and editable.

This command extends a surface or creates a new surface as an extension.

Return value

string[]Object name and node name

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


caching, constructionHistory, distance, extendDirection, extendMethod, extendSide, extensionType, join, name, nodeState, object, replaceOriginal
Long name (short name) Argument types Properties
extensionType(et) int createqueryedit
The type of extension (0 - tangent, 2 - extrapolate)
Default: 0
extendMethod(em) int createqueryedit
The extend method (0 - distance)
Default: 0
extendSide(es) int createqueryedit
Which end of the surface to extend ( 0 - end, 1 - start, 2 - both )
Default: 1
extendDirection(ed) int createqueryedit
Which parametric direction of the surface to extend ( 0 - U, 1 - V, 2 - both )
Default: 0
join(jn) boolean createqueryedit
Join extension to original
Default: true
distance(d) linear createqueryedit
The distance to extend (for by distance only)
Default: 1
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)

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

#Create a nurbs plane, then extend both sides of the plane by 10
cmds.extendSurface('plane1', d=10, es=2)