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  
   
local (l) bool ../../../_images/create.gif
 

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 ../../../_images/create.gif
 
Name the resulting object
nodeState (nds) int  
   
object (o) bool ../../../_images/create.gif
 
Create the result, or just the dependency node (where applicable)

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.

Previous topic

pymel.core.modeling.duplicateCurve

Next topic

pymel.core.modeling.extendCurve

Core

Core Modules

Other Modules

This Page