FileBrowserItemFactory#

class omni.kit.widget.filebrowser.FileBrowserItemFactory#

Bases: object

Factory to create FileBrowserItem instances.

Methods

create_dummy_item(name, path)

Create a dummy item at the given path.

create_group_item(name, path)

Create a folder item at the given path.

create_udim_item(name, path, range_start, ...)

Create a UDIM item.

__init__()#
static create_dummy_item(
name: str,
path: str,
) FileBrowserItem#

Create a dummy item at the given path.

Parameters:
  • name (str) – name of the item.

  • path (str) – path of the item.

static create_group_item(
name: str,
path: str,
) FileBrowserItem#

Create a folder item at the given path.

Parameters:
  • name (str) – name of the item.

  • path (str) – path of the item.

static create_udim_item(
name: str,
path: str,
range_start: int,
range_end: int,
repr_frame: int,
)#

Create a UDIM item.

Parameters:
  • name (str) – name of the item.

  • path (str) – path of the item.

  • range_start (int) – Starting index of UDIM sequence.

  • range_end (int) – End index of UDIM sequence.

  • repr_frame (int) – Index in UDIM sequence.