DuplicateHierarchy

vtool.maya_lib.space.DuplicateHierarchy(…) Duplicate the hierachy of a transform.
class DuplicateHierarchy(transform)

Duplicate the hierachy of a transform.

Parameters:transform (str) – The name of a transform with child hierarchy.
only_these(list_of_transforms)

Only duplicate transforms in list_of_transforms.

Parameters:list_of_transforms (list) – Names of transforms in the hierarchy.
stop_at(transform)

The transform at which to stop the duplication.

Parameters:transform (str) – The name of the transform.
replace(old, new)

Replace the naming in the duplicate.

Parameters:
  • old (str) – String in the duplicate name to replace.
  • new (str) – String in the duplicate to replace with.
create()

Create the duplicate hierarchy.