get_graph_resources#

omni.mdl.neuraylib.utils.get_graph_resources(
transaction: ITransaction,
graph_node_db_name: str,
) list[IValue_resource]#

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

Returns:

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