get_resource_uri_list#

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

Computes or resolves the URIs for a given resource set.

Parameters:
  • transaction (pymdlsdk.ITransaction) – The DB transaction that was used to access the given resource.

  • resource (pymdlsdk.IValue_resource) – The MDL resource, i.e., texture, light profile, or measured bsdf.

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

Returns:

The resolved URI of the resource or the empty string in case of the empty texture. For animated or tiled resources the list can contain more than one element.