get_graph_resources_uris#

omni.mdl.neuraylib.utils.get_graph_resources_uris(
transaction: ITransaction,
graph_node_db_name: str,
report_missing: bool = False,
) list[str]#

Traverse the material graph to gather all body/default and parameter resources.

Parameters:
  • transaction (pymdlsdk.ITransaction) – a DB transaction that is able to see the given graph node

  • graph_node_db_name (str) – the DB of the node to traverse

  • report_missing (bool) – If True, resources that can not be resolved are reported with a leading token “[missing]”.

Returns:

A list of all resource URIs that the given graph node and its children reference.