Appendix A. Setting up a Python programming environment for OpenUSD

 

Before you progress to Chapter 2 and begin creating an OpenUSD scene via programming, you will need to prepare your tools by first, selecting a method of visualizing your scene and secondly, setting up a programming environment for OpenUSD.

There follows a step by step approach to setting up your system for working with OpenUSD. The first part, Visualizing OpenUSD, suggests tools that allow you to view .usd files via a viewport with a Graphic User Interface (GUI). The second part, which prepares you for the main topic of this book, teaches readers how to easily set up a coding environment to program OpenUSD using Python.

For Python scripting, we will consistently use command terminals or notebooks externally from the viewers throughout the book. In other words, we will create the .usd files by scripting outside of the viewers, then open or import these files to view them in a GUI. The exception to this rule is USDComposer, where scripting can be done either internally or externally. This approach allows us to present the information more efficiently by avoiding the need to continually address any differences between scripting environments in various viewers.

There are many options available for viewing .usd files, such as USDView (PC or Linux), or Blender, which will run on PC, Mac, or Linux. Mac users can also view .usd files with the built in applications Preview or Quicklook.

A.1 Downloading Assets for Activities

A.2 Visualizing OpenUSD

A.2.1 USDView

A.2.2 Blender

A.2.3 NVIDIA Omniverse (USD Composer)

A.2.4 Apple Mac Native Apps

A.3 Programming Python for OpenUSD

A.3.1 (Option 1) Using A Virtual Environment

A.3.2 (Option 2) Using a Cloud Based Environment

A.3.3 (Option 3) Using NVIDIA’s USD Composer

A.4 The Advantages of Using Python

A.5 Summary