LayerWorldAxisModel

class omni.kit.property.layer.layer_property_models.LayerWorldAxisModel(layer_item: <module 'weakref' from '/root/.cache/packman/python/3.10.5-1-linux-x86_64/lib/python3.10/weakref.py'>)

Bases: AbstractItemModel

A model representing the world axis of a layer in a 3D scene.

The model manages the up-axis orientation for a given stage layer, enabling the user to switch between Y-up and Z-up world axes. It provides a UI representation for axis selection and executes the necessary commands to update the stage when a change is made.

Parameters

layer_item (weakref) – A weak reference to the associated layer item.

Methods

__init__(layer_item)

Constructor for LayerWorldAxisModel.

get_item_children(item)

Retrieves children of the given item.

get_item_value_model(item, column_id)

Gets the value model for the specified item and column.

get_usd_token_name()

Retrieves the USD token name for the up axis.

on_value_changed()

Updates the value based on the layer item's current state.

__init__(layer_item: <module 'weakref' from '/root/.cache/packman/python/3.10.5-1-linux-x86_64/lib/python3.10/weakref.py'>)

Constructor for LayerWorldAxisModel.

get_item_children(item)

Retrieves children of the given item.

Parameters

item (ui.AbstractItem) – The item to get children from.

get_item_value_model(item, column_id)

Gets the value model for the specified item and column.

Parameters
  • item (ui.AbstractItem) – The item to get value model for.

  • column_id (int) – The column identifier.

get_usd_token_name()

Retrieves the USD token name for the up axis.

on_value_changed()

Updates the value based on the layer item’s current state.