Automating With Python#
In this section, we will explore a sample that automates all of the hands on sections of the content iteration cycle headlessly.
To explore the sample, clone the VFI Samples Repository and open the directory in VS Code, or your favorite IDE.
Open a command prompt.
# cd into the directory where you want to clone the repository
cd D:/vfi
# clone the repository
git clone https://github.com/NVIDIA-Omniverse/VFI-Samples.git
# cd into the repository
cd vfi-samples
Open the repository in VS Code or your favorite IDE.
Open the
automate.bat
file and update the paths specified in the file.
:: Update this path to your Kit executable
set KIT_PATH=C:/Omniverse/kit-app-template/_build/windows-x86_64/release/kit/kit.exe
:: Update this path to the sample data folder
set VFI_WORKFLOW_DATA_FOLDER=C:/Omniverse/vfi/vfi_workflow_data
:: Update this path to your desired output location
set OUTPUT_ROOT=C:/Omniverse/vfi/output
Execute the
automate.bat
file to run the complete VFI pipeline:
automate.bat
Note
The batch file includes 5 workflow sections. You can comment out sections you don’t want to run by adding REM`
or `::`
before the relevant lines:
- Section 1: CAD Conversion (JT to USD)
- Section 2: USD Validation
- Section 3: USD Optimization
- Section 4: Material Assignment
- Section 5: Component Aggregation
For detailed information about individual scripts, see the README file in the git repository.