API (python)
Module Summary:
Omni Kit Hotkeys Core |
Module Details::
Omni Kit Hotkeys Core
Omni Kit Hotkeys Core is a framework for creating, registering, and discovering hotkeys.
Here is an example of registering an hokey from Python that execute action “omni.kit.window.file::new” to create a new file when CTRL + N pressed:
hotkey_registry = omni.kit.hotkeys.core.get_hotkey_registry()
hotkey_registry.register_hotkey(
"your_extension_id",
"CTRL + N",
"omni.kit.window.file",
"new",
filter=None,
)
For more examples, please consult the Usage Examples page.