Go to: Synopsis. Return value. Flags. Python examples.

Synopsis

duplicateSurface([constructionHistory=boolean], [local=boolean], [name=string], [object=boolean])

Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.

duplicateSurface is undoable, queryable, and editable.

The duplicateSurface command takes a surface patch (face) and and returns the 3D surface. Connected patches are returned as a single surface.

Return value

string[]Object name and node name

In query mode, return type is based on queried flag.

Flags

constructionHistory, local, name, object
Long name (short name) Argument types Properties
Common flags
constructionHistory(ch) boolean create
Turn the construction history on or off (where applicable)
object(o) boolean create
Create the result, or just the dependency node (where applicable)
local(l) boolean create
Copy the transform of the surface and connect to the local space version instead.
name(n) string create
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 command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can have multiple arguments, passed either as a tuple or a list.

Python examples

import maya.cmds as cmds

cmds.nurbsPlane( u=4, v=3 )
cmds.duplicateSurface( 'nurbsPlane1.sf[1:2][0:1]', ch=True, o=True )

# Duplicates 4 faces of a nurbs plane.