VectorFloatSettingsModel

class omni.kit.widget.settings.settings_model.VectorFloatSettingsModel(setting_path: str, component_count: int, immediate_mode: bool = True)

Bases: VectorSettingsModel

Methods

__init__(setting_path, component_count[, ...])

VectorSettingsModel init function.

end_edit(self, item)

Called when the user finishes the editing.

get_value()

Return current float values tuple.

__init__(setting_path: str, component_count: int, immediate_mode: bool = True)

VectorSettingsModel init function.

Parameters
  • setting_path – setting_path carb setting to create a model for

  • component_count – how many elements does the setting have?

  • immediate_mode – do we update the underlying setting immediately, or wait for endEdit

end_edit(self: omni.ui._ui.AbstractItemModel, item: omni.ui._ui.AbstractItem) 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.

get_value() tuple

Return current float values tuple.