GfQuatAttributeModel#

class omni.kit.property.usd.GfQuatAttributeModel(
stage: Stage,
attribute_paths: List[Path],
tf_type: Type,
self_refresh: bool,
metadata: dict,
)#

Bases: AbstractItemModel, UsdBase

A model for managing quaternion attributes in a USD stage.

This model provides an interface to interact with quaternion attributes associated with USD prim paths. It supports updating the attribute values and responding to changes in the stage.

Parameters:
  • stage (Usd.Stage) – The USD stage to associate with the model.

  • attribute_paths (List[Sdf.Path]) – A list of prim paths whose attributes this model will manage.

  • tf_type (Tf.Type) – The type of transformation (e.g., rotation, scale, translation) that the quaternion represents.

  • self_refresh (bool) – Whether the model should automatically refresh its data when changes occur in the stage.

  • metadata (dict) – Additional metadata that may be needed for managing the attributes.

Methods

__init__(stage, attribute_paths, tf_type, ...)

Initializes the GfQuatAttributeModel.

begin_edit([item])

Begins the editing process for a given item.

clean()

Cleans up the model, preparing it for deletion.

end_edit([item])

Ends the editing process for a given item.

get_item_children(item)

Retrieves children of a given item.

get_item_value_model(item, column_id)

Gets the value model for a specified item and column.

Attributes

__init__(
stage: Stage,
attribute_paths: List[Path],
tf_type: Type,
self_refresh: bool,
metadata: dict,
)#

Initializes the GfQuatAttributeModel.

begin_edit(item=None)#

Begins the editing process for a given item.

Parameters:

item – The item to start editing.

clean()#

Cleans up the model, preparing it for deletion.

end_edit(item=None)#

Ends the editing process for a given item.

Parameters:

item – The item to finish editing.

get_item_children(item)#

Retrieves children of a given item.

Parameters:

item – The item to get children for.

get_item_value_model(item, column_id)#

Gets the value model for a specified item and column.

Parameters:
  • item – The item to get the value model for.

  • column_id – The id of the column.