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.
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 |
|
distance(d)
|
linear
|
|
|
The distance to extend (for by distance only)
Default: 1
|
|
extendDirection(ed)
|
int
|
|
|
Which parametric direction of the surface to extend ( 0 - U, 1 - V, 2 - both )
Default: 0
|
|
extendMethod(em)
|
int
|
|
|
The extend method (0 - distance)
Default: 0
|
|
extendSide(es)
|
int
|
|
|
Which end of the surface to extend ( 0 - end, 1 - start, 2 - both )
Default: 1
|
|
extensionType(et)
|
int
|
|
|
The type of extension (0 - tangent, 2 - extrapolate)
Default: 0
|
|
join(jn)
|
boolean
|
|
|
Join extension to original
Default: true
|
|
Common flags |
constructionHistory(ch)
|
boolean
|
|
|
Turn the construction history on or off.
|
|
name(n)
|
string
|
|
|
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.
|
|
object(o)
|
boolean
|
|
|
Create the result, or just the dependency node.
|
|
replaceOriginal(rpo)
|
boolean
|
|
|
Create "in place" (i.e., replace).
|
|
Advanced flags |
caching(cch)
|
boolean
|
|
|
Modifies the node caching mode. See the node documentation for more information.
Note: For advanced users only.
|
|
nodeState(nds)
|
int
|
|
|
Modifies the node state. See the node documentation for more information.
Note: For advanced users only.
|
|
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.
|
import maya.cmds as cmds
#Create a nurbs plane, then extend both sides of the plane by 10
cmds.nurbsPlane(n='plane1')
cmds.extendSurface('plane1', d=10, es=2)