mango.utils.path module

mango.utils.path.get(node, full_path=True)

Get the path from a variety of possible inputs. This will reduce a lot of if statements when working with maya paths.

Parameters:
  • node (str/OpenMaya.MObject) –
  • full_path (bool) –
Returns:

str

Raises:

RuntimeError – When the path doesn’t exist in the current scene.