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 Modifies the node caching mode. See the node documentation for more information. Note:For advanced users only. constructionHistory / ch bool Turn the construction history on or off. distance / d float 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 frozen / fzn bool join / jn bool Join extension to original Default:true Common flags 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 Modifies the node state. See the node documentation for more information. Note:For advanced users only. Flag can have multiple arguments, passed either as a tuple or a list. object / o bool Create the result, or just the dependency node. replaceOriginal / rpo bool Create in place(i.e., replace). Advanced flags 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')] #