tlc.common.miscutils

Miscellaneous utilities.

This module contains generic utilities that may be used in any department/task. This utilities are not specific for any pipeline, they are usable in any Maya scene.

When there is a significant amount of elements related to a specific field, they may be moved to a new module. Though this should be done only in very special cases to avoid breaking backwards compatibility.

../_images/packages_tlc.common.png

Functions

countMayaProjectsInPath(filename)

Count Maya projects in path

deleteChannelsAndHistory(group_name)

Delete channels (animCurves) and construction history for an element

deleteChannelsAndHistoryForAll()

Delete channels (animCurves) and construction history for all the scene

deleteEmptyGroups()

Delete all empty groups in the scene

getBrokenReferences()

Return a list of the broken references in the scene

getCopyPastedNodes()

Get copy-pasted nodes in scene

getCurrentProject()

Returns the path of current open Maya project (workspace)

getEmptyGroups()

Return empty groups in current scene

getInstances()

Get instances in the scene

getNodesWithInvalidCharacters()

Get nodes in scene with invalid characters

getProjectPathForScene(scene_path)

Return the path of the project containing a scene

getReferences()

Return a list of reference nodes in the scene

getScenesInDirectory(path[, extensions])

Return a list of scenes inside a directory structure, complying with the extensions supplied

importFile(file_path, group_name)

Import a file to current scene

isNameUnique(n)

Check whether a node name is unique in the scene

referenceFile(file_path, group_name)

Reference a file from current scene

renameNonUniqueNodes()

Rename non-unique name nodes (adding a number as a postfix)

uninstance(instances)

Uninstance (copy) nodes

Classes

BoundingBox(node)

Axis aligned bounding box (AABB)