get_subidentifier_from_material

async omni.kit.material.library.get_subidentifier_from_material(prim: Prim, on_complete_fn: callable, use_functions: bool = False, show_alert: bool = False)

get sub-identifier list from material prim asynchronously.

Parameters
  • prim (Usd.Prim) – prim to get material & material sub-identifier from.

  • on_complete_fn (callable) – function to call with list of sub-identifier when completed.

  • use_functions (bool) – if True only list materials and not functions otherwise return all sub-identifiers.

  • show_alert (bool) – show alert if bad material.

Returns

list of sub-identifier

Return type

(list)