The duplicateSurface command takes a surface patch (face) and and returns the 3D surface. Connected patches are returned as a single surface.
Flags:
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 | ||
frozen / fzn | bool | ||
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 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.