get_materials_from_stage_async#

omni.kit.material.library.get_materials_from_stage_async(
update_func: callable,
wait_frames: int = 1,
ext_filter_func: callable = None,
)#

Get list of materials for stage asynchronously.

Parameters:
  • update_func (callable) – function to call when new material names are available.

  • wait_frames (int) – number of frames to wait before starting to get materials list.

  • ext_filter_func (callable) – filter function to remove material names from list. Optional.