Skip to content

NVIDIA-Omniverse/kit-extension-sample-spawn-prims

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spawn Primitives Extension Sample

previewImage2

About

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.

Adding This Extension

To add this extension to your app:

  1. Download or Clone the extension, unzip the file if downloaded

  2. Create a New Extension

Linux:

./repo.sh template new

Windows:

.\repo.bat template new
  1. 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
  1. 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" = {}
  1. 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

Contributing

The source code for this repository is provided as-is and we are not accepting outside contributions.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published