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 | ||
Copy the transform of the surface and connect to the local space version instead.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list. |
|||
mergeItems (mi) | bool | ||
name (n) | unicode | ||
|
|||
nodeState (nds) | int | ||
object (o) | bool | ||
|
Derived from mel command maya.cmds.duplicateSurface
Example:
import pymel.core as pm
import maya.cmds as cmds
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.