PrimNameModel#
- class omni.kit.widget.stage.PrimNameModel(stage_item)#
Bases:
AbstractValueModelThe 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.
Reimplemented get string
rebuild()set_value(value)Reimplemented set
Attributes
labelpathstage_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