This command extends a surface or creates a new surface as an extension.
| Long name (short name) | Argument Types | Properties | |
|---|---|---|---|
| caching (cch) | bool |
|
|
|
|||
| constructionHistory (ch) | bool |
|
|
|
|||
| distance (d) | float |
|
|
|
|||
| extendDirection (ed) | int |
|
|
|
|||
| extendMethod (em) | int |
|
|
|
|||
| extendSide (es) | int |
|
|
|
|||
| extensionType (et) | int |
|
|
|
|||
| join (jn) | bool |
|
|
|
|||
| name (n) | unicode |
|
|
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. |
|||
| noChanges (nc) | bool | ||
| nodeState (nds) | int |
|
|
|
|||
| object (o) | bool |
|
|
|
|||
| replaceOriginal (rpo) | bool |
|
|
|
|||
Derived from mel command maya.cmds.extendSurface
Example:
import pymel.core as pm
#Create a nurbs plane, then extend both sides of the plane by 10
pm.nurbsPlane(n='plane1')
# Result: [nt.Transform(u'plane1'), nt.MakeNurbPlane(u'makeNurbPlane1')] #
pm.extendSurface('plane1', d=10, es=2)
# Result: [nt.Transform(u'plane1'), nt.ExtendSurface(u'extendSurface1')] #