MdlMatrixAttributeModel

class omni.kit.property.material.scripts.widgets.usdshade.models.matrix.MdlMatrixAttributeModel(stage: Stage, attribute_paths: List[Path], dimensions: List[int], self_refresh: bool, metadata: dict)

Bases: MatrixBaseAttributeModel

Extension of MatrixBaseAttributeModel for displaying non-uniform matrices.

This model is used to represent a matrix attribute where the dimensions of the matrix may not be uniform. It extends the functionality of MatrixBaseAttributeModel by managing the display and update of matrix values in the UI.

Parameters
  • stage (Usd.Stage) – The USD stage that the attribute belongs to.

  • attribute_paths (List[Sdf.Path]) – A list of paths to the attributes.

  • dimensions (List[int]) – The dimensions of the matrix as a list [rows, columns].

  • self_refresh (bool) – Whether the model should refresh itself automatically.

  • metadata (dict) – A dictionary containing metadata for the attribute.

Methods

__init__(stage, attribute_paths, dimensions, ...)

Initializes the MdlMatrixAttributeModel with the given parameters.

Attributes

__init__(stage: Stage, attribute_paths: List[Path], dimensions: List[int], self_refresh: bool, metadata: dict)

Initializes the MdlMatrixAttributeModel with the given parameters.