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

Synopsis

duplicateSurface [-constructionHistory boolean] [-local boolean] [-name string] [-object boolean]

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
-name(-n) string create
Name the resulting object
-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.

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 be used more than once in a command.

MEL examples

 nurbsPlane -u 4 -v 3;
   duplicateSurface -ch true -o true nurbsPlane1.sf[1:2][0:1];

// Duplicates 4 faces of a nurbs plane.