load_node¶
-
load_node(root: Node, filepath: unicode, root_name: unicode) → Node¶ Load the content of a file into the project.
Load the file content inside the root node. Any supported file format (.rumbanode and .abc right now) can be loaded.
Parameters: - root (Node) – The document node where to add the file content
- filepath (unicode) – The file path
- root_name (unicode) – Some file format (like alembic) have to gather the file content into a single node. In that case, root_name is the root node name of the file content. If root_name is empty, the filename is used.
Return type: Raises: RuntimeError – if the file can’t be loaded.