This repository contains useful Universal Scene Description (OpenUSD) code samples in Python, C++, and USDA. If you want to browse the code samples to use them, you can see them fully rendered in the OpenUSD Code Samples documentation page.
This repository uses Poetry for dependency management. If you're new to Poetry, you don't need to know much more than the commands we use in the build instructions. To make it easier when authoring code samples and contributing, we recommend installing:
- Install any version of Python between versions 3.8-3.10 .
- Install Poetry
poetry install
poetry run python build_docs.py
- In a web browser, open
sphinx/_build/index.html
Ideas for new code samples that could help other developers are always welcome. Please create a new issue requesting a new code sample and add the new request label. Someone from the NVIDIA team or OpenUSD community will pick it up. If you can contribute it yourself, even better!
Please let us know if you find any mistakes or non-working code samples. File an issue with a bug label to let us know and so we can address it.
Contributions are welcome! If you would like to contribute, please read our Contributing Guidelines to understand how to contribute. Also, check out the Code Sample Guidelines to understand how code samples file and folders are structured in this repository and how to adhere to follow our code samples style.