paya.lib.modettol#

Utilities for model cleanup.

getAllGeoShapes(noIntermediate=False)#
Parameters

noIntermediate (bool) – skip intermediate nodes; defaults to False

Returns

mesh, nurbsCurve and nurbsSurface nodes in the scene.

Return type

[str]

getAllGeoXforms()#
Returns

Transforms for all mesh, nurbsCurve and nurbsSurface nodes in the scene.

Return type

[str]

conformShapeNames()#

Repairs wonky geometry shape names.

checkDuplicateNames()#

Checks for duplicate geometry shape and transform names. If any are found, the instances are organised into a duplicate_names object set for further inspection.

removeUnknownNodes()#

Removes all unknown nodes from the scene. :return: The names of nodes which were removed. :rtype: [str]

removeUnknownPlugins()#

Removes all requirements for unknown plugins from the scene. :return: The names of plugins which were removed. :rtype: [str]

removeUnknown()#

Convenience function. Calls removeUnknownNodes() and removeUnknownPlugins().