pymel.core.modeling.duplicateSurface

duplicateSurface(*args, **kwargs)

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 ../../../_images/create.gif
  Turn the construction history on or off (where applicable).
faceCountU / fcu int  
   
faceCountV / fcv int  
   
firstFaceU / ffu int  
   
firstFaceV / ffv int  
   
frozen / fzn bool  
   
local / l bool ../../../_images/create.gif
  Copy the transform of the surface and connect to the local space version instead.
mergeItems / mi bool  
   
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.
nodeState / nds int  
   
object / o bool ../../../_images/create.gif
  Create the result, or just the dependency node (where applicable). Flag can have multiple arguments, passed either as a tuple or a list.

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.