The duplicateSurface command takes a surface patch (face) and and returns the 3D surface. Connected patches are returned as a single surface.
| Long name (short name) | Argument Types | Properties | |
|---|---|---|---|
| caching (cch) | bool | ||
| constructionHistory (ch) | bool |
|
|
|
|||
| faceCountU (fcu) | int | ||
| faceCountV (fcv) | int | ||
| firstFaceU (ffu) | int | ||
| firstFaceV (ffv) | int | ||
| local (l) | bool |
|
|
|
|||
| mergeItems (mi) | 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.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list. |
|||
| nodeState (nds) | int | ||
| object (o) | bool |
|
|
|
|||
Derived from mel command maya.cmds.duplicateSurface
Example:
import pymel.core as pm
pm.nurbsPlane( u=4, v=3 )
# Result: [nt.Transform(u'nurbsPlane1'), nt.MakeNurbPlane(u'makeNurbPlane1')] #
pm.duplicateSurface( 'nurbsPlane1.sf[1:2][0:1]', ch=True, o=True )
# Result: [u'duplicatedSurface1', u'subSurface1'] #
# Duplicates 4 faces of a nurbs plane.