SampleBrowserModel#

class omni.kit.browser.sample.extension.SampleBrowserModel(*args, **kwargs)#

Bases: TreeFolderBrowserModel

Sample browser model that can register multiple root folder paths.

Methods

__init__(*args, **kwargs)

Sample browser model init.

execute(item)

Execute this method when a DetailItem is double-clicked.

register_sample_folder(url[, name])

Register a sample folder path with the model.

unregister_sample_folder(url)

Unregister a sample folder path with the model when finished with it.

Attributes

__init__(*args, **kwargs)#

Sample browser model init.

execute(
item: DetailItem,
) None#

Execute this method when a DetailItem is double-clicked.

register_sample_folder(
url: str,
name: str | None = None,
)#

Register a sample folder path with the model.

unregister_sample_folder(url: str)#

Unregister a sample folder path with the model when finished with it.