How to select category item use code?

in the file
omni.kit.browser.asset_store\omni\kit\browser\asset_store\browser_widget.py
line 118

# Alway show "ALL" if nothing selected
            self.category_selection = [self._browser_model._category_items[0]]

[self._browser_model._category_items[0]] can select “all”,
[self._browser_model._category_items[3]] can select “ANIMAL”

how to select "bird"in “animal”
微信截图_20221117161203

To get bird within animal you will want to access that category_item’s children.

# Category Animal
self._browser_model._category_items[2]
# Child category Bird in Animal
self._browser_model._category_items[2].children[1]
2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.