This repo shows how to build an extension in less than 10 minutes. The focus of this sample extension is to show how to create an extension and use omni.kit commands.
See the README for this extension to learn more about it including how to use it.
Follow a step-by-step tutorial that walks you through how to use omni.ui.scene to build this extension.
To add this extension to your app:
-
Download or Clone the extension, unzip the file if downloaded
-
Create a New Extension
Linux:
./repo.sh template new
Windows:
.\repo.bat template new
- Follow the prompt instructions:
- ? Select with arrow keys what you want to create: Extension
- ? Select with arrow keys your desired template:: Python UI Extension
- ? Enter name of extension [name-spaced, lowercase, alphanumeric]:: omni.example.spawn_prims
- ? Enter extension_display_name:: Spawn Primitives
- ? Enter version:: 0.1.0
- Add the Extension to an Application
In the newly created extension, copy and paste the omni.example.spawn_prims
folder that was cloned into kit-app-template/sources/extensions/omni.example.spawn_prims
.
You will be prompted if you want to replace files, select Replace All
.
To add your extension to an application, declare it in the dependencies section of the application's .kit
file:
[dependencies]
"omni.example.spawn_prims" = {}
- Build with New Extensions
After a new extension has been added to the
.kit
file, the application should be rebuilt to ensure extensions are populated to the build directory.
Linux:
./repo.sh build
Windows:
.\repo.bat build
The source code for this repository is provided as-is and we are not accepting outside contributions.