Module Setup: Creating Composition Arcs#
Setup Required Tools#
This module uses usdview and Python. If you haven’t done so yet, please follow the Installing usdview and Setting Up Python instructions before proceeding.
Get the Exercise Content#
This module includes interactive exercises to give you hands-on experience. This section will walk you through how to download and install the exercise content.
Download the required Creating Composition Arcs exercise content.
Extract the folder.
Open the root folder for the OpenUSD binaries in Visual Studio Code. We named this folder
usd_root/
in the above sections. If you have not installed usdview refer to full installation instructions.Copy the extracted folder into
usd_root/
by dragging and dropping it into the Explorer section of Visual Studio Code. If prompted about adding the folder to the workspace, select Copy Folder.
The folder we want to copy over is the composition_arcs
folder.
Activate Your Python Environment#
If you have set up a virtual Python environment using our virtual environment instructions, then run the appropriate command for your operating system in the terminal within Visual Studio Code to start your virtual Python environment.
Shell |
Command to activate virtual environment |
---|---|
bash/zsh |
source python-usd-venv/bin/activate
|
fish |
source python-usd-venv/bin/activate.fish
|
csh/tcsh |
source python-usd-venv/bin/activate.csh
|
cmd.exe |
python-usd-venv\Scripts\activate.bat
|
PowerShell |
python-usd-venv\Scripts\Activate.ps1
|
You’ll need to adapt the commands above if you named your virtual environment differently.
Attention
All exercises will assume Visual Studio Code is open in the usd_root/
. See video above for reference.