Go to: Synopsis. Return value. Python examples.

Synopsis

subdDuplicateAndConnect( object )

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

subdDuplicateAndConnect is undoable, NOT queryable, and NOT editable.

This command duplicates the input subdivision surface object, connects up the outSubdiv attribute of the original subd shape to the create attribute of the newly created duplicate shape and copies over the shader assignments from the original shape to the new duplicated shape.

The command will fail if no objects are selected or sent as argument or if the object sent as argument is not a subdivision surface object.

Return value

None

Python examples

import maya.cmds as cmds

cmds.subdDuplicateAndConnect( 'pSubd1' )