pymel.core.modeling.extendSurface

extendSurface(*args, **kwargs)

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

Flags:
Long name (short name) Argument Types Properties
caching (cch) bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Modifies the node caching mode. See the node documentation for more information.Note:For advanced users only.
constructionHistory (ch) bool ../../../_images/create.gif
 
Turn the construction history on or off
distance (d) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
The distance to extend (for by distance only)Default:1Advanced flags
extendDirection (ed) int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Which parametric direction of the surface to extend ( 0 - U, 1 - V, 2 - both )Default:0
extendMethod (em) int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
The extend method (0 - distance)Default:0
extendSide (es) int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Which end of the surface to extend ( 0 - end, 1 - start, 2 - both )Default:1
extensionType (et) int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
The type of extension (0 - tangent, 2 - extrapolate)Default:0
join (jn) bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Join extension to originalDefault:true
name (n) unicode ../../../_images/create.gif
 

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 ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Modifies the node state. See the node documentation for more information.Note:For advanced users only.Common flags
object (o) bool ../../../_images/create.gif
 
Create the result, or just the dependency node
replaceOriginal (rpo) bool ../../../_images/create.gif
 
Create “in place” (i.e., replace)Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list.

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')] #

Previous topic

pymel.core.modeling.extendCurve

Next topic

pymel.core.modeling.extrude

Core

Core Modules

Other Modules

This Page