IntModel

class omni.kit.property.usd.IntModel(parent)

Bases: SimpleIntModel

A model providing a simple interface for a integer value.

This model is a thin wrapper around a float, allowing for easy integration with UI components that require a model to represent and manipulate floating-point numbers. It is particularly useful for scenarios where a float value needs to be observed or edited within a user interface.

Parameters

parent – A weak reference to the parent of this model, allowing this model to notify the parent about changes to the value.

Methods

__init__(parent)

Initializes a new instance of the IntModel.

begin_edit()

Begins editing the value.

end_edit()

Ends editing the value.

Attributes

__init__(parent)

Initializes a new instance of the IntModel.

begin_edit()

Begins editing the value.

end_edit()

Ends editing the value.