tik_manager4.dcc.maya.validate.unique_names

Validation for unique names in Maya scene

Classes

UniqueNames

Validate class for Maya

Module Contents

class UniqueNames

Bases: tik_manager4.dcc.validate_core.ValidateCore

Validate class for Maya

collect()

Collect data

fix()

Auto fix the validation.

make_names_unique()

Makes sure that everything is named uniquely. Returns list of renamed nodes and list of new names

Args:

query: (Boolean) If True, returns only non-unique nodes without changing anything

Returns: [List of old names, list of new names]

select()

Selects the objects with non-unique names

static unique_name(name, return_counter=False, suffix=None)

Searches the scene for match and returns a unique name for given name Args:

name: (String) Name to query return_counter: (Bool) If true, returns the next available number instead of the object name suffix: (String) If defined and if name ends with this suffix, the increment numbers will be put before the.

Returns: (String) uniquename

validate()

Validate unique names in Maya scene.

nice_name = 'Unique Names'