SdfAssetPathArrayAttributeItemModel#
- class omni.kit.property.usd.SdfAssetPathArrayAttributeItemModel(
- stage: Stage,
- attribute_paths: List[Path],
- self_refresh: bool,
- metadata: dict,
- delegate,
Bases:
AbstractItemModelA class for managing a collection of asset paths as attribute items within a USD stage.
This model provides functionality to manipulate and retrieve data for asset paths stored in a USD stage. It supports self-refreshing and holds metadata and a delegate for advanced customization.
- Parameters:
stage (
Usd.Stage) – The USD stage where the asset paths are located.attribute_paths (List[
Sdf.Path]) – A list of attribute paths within the USD stage.self_refresh (bool) – If True, the model will automatically refresh its data when changes occur.
metadata (dict) – A dictionary containing metadata for the asset paths.
delegate – A delegate object for custom behavior and data handling.
Methods
__init__(stage, attribute_paths, ...)Initializes the SdfAssetPathArrayAttributeItemModel.
clean()Cleans up the model, releasing any resources or references.
drop(target_item, source[, drop_location])Handles the drop operation.
drop_accepted(target_item, source[, ...])Determines if a drop operation is accepted.
get_drag_mime_data(item)Retrieves the drag mime data for an item.
get_item_children(item)Returns the children of a given item.
get_item_value_model(item, column_id)Retrieves the value model for a given item and column ID.
Returns the number of value models for an item.
get_value(*args, **kwargs)Retrieves the current value of the model.
set_value(*args, **kwargs)Sets the value of the model.
Attributes
Gets the value model associated with this item model.
- __init__(
- stage: Stage,
- attribute_paths: List[Path],
- self_refresh: bool,
- metadata: dict,
- delegate,
Initializes the SdfAssetPathArrayAttributeItemModel.
This method does not require documentation of its parameters.
- clean()#
Cleans up the model, releasing any resources or references.
- drop(
- target_item,
- source,
- drop_location=-1,
Handles the drop operation.
- Parameters:
target_item (
SdfAssetPathItem) – The target item.source (
SdfAssetPathItem) – The source item being dropped.drop_location (int) – The location where the drop is intended.
- drop_accepted(
- target_item,
- source,
- drop_location=-1,
Determines if a drop operation is accepted.
- Parameters:
target_item (
SdfAssetPathItem) – The target item.source (
SdfAssetPathItem) – The source item being dropped.drop_location (int) – The location where the drop is intended.
- get_drag_mime_data(item)#
Retrieves the drag mime data for an item.
- Parameters:
item (
SdfAssetPathItem) – The item to get the drag mime data for.
- get_item_children(item)#
Returns the children of a given item.
- Parameters:
item (
SdfAssetPathItem) – The item to retrieve children for.
- get_item_value_model(
- item,
- column_id,
Retrieves the value model for a given item and column ID.
- Parameters:
item (
SdfAssetPathItem) – The item to retrieve the model for.column_id (int) – The column ID.
- get_item_value_model_count(item)#
Returns the number of value models for an item.
- Parameters:
item (
SdfAssetPathItem) – The item to get the value model count for.
- get_value(*args, **kwargs)#
Retrieves the current value of the model.
- Keyword Arguments:
args (list) – Additional arguments for retrieving the value.
- set_value(*args, **kwargs)#
Sets the value of the model.
- Parameters:
args (list) – The value to set.
- Keyword Arguments:
kwargs (dict) – Additional keyword arguments.
- property value_model: UsdAttributeModel#
Gets the value model associated with this item model.
- Returns:
The value model.
- Return type: