PrimNameModel#

class omni.kit.widget.stage.PrimNameModel(stage_item)#

Bases: AbstractValueModel

The model that changes the prim name

Methods

__init__(self)

Constructs AbstractValueModel.

begin_edit(self)

Called when the user starts the editing.

destroy()

end_edit(self)

Called when the user finishes the editing.

get_value_as_string()

Reimplemented get string

rebuild()

set_value(value)

Reimplemented set

Attributes

label

path

stage_item

__init__(self: omni.ui._ui.AbstractValueModel) None#

Constructs AbstractValueModel.

`kwargsdict`

See below

### Keyword Arguments:

begin_edit(self: omni.ui._ui.AbstractValueModel) None#

Called when the user starts the editing. If it’s a field, this method is called when the user activates the field and places the cursor inside. This method should be reimplemented.

end_edit(self: omni.ui._ui.AbstractValueModel) None#

Called when the user finishes the editing. If it’s a field, this method is called when the user presses Enter or selects another field for editing. It’s useful for undo/redo. This method should be reimplemented.

get_value_as_string()#

Reimplemented get string

set_value(value)#

Reimplemented set