This repo contains a USD file format plugin that proceduraly generates a cube centered on the origin. The metadata Usd_Proctest_SideLength
is used to interactively set the length of the cube side.
PXR_CONFIG_CMAKE
: location of thepxrConfig.cmake
exported symbols (usually located at the root of the USD distribution folder).
# Generate the build files
cmake ../usdProctest -DCMAKE_INSTALL_PREFIX=$USD_ROOT/plugin/usd -DPXR_CONFIG_CMAKE=$USD_ROOT/pxrConfig.cmake
# Build and install
cmake --build . --target install
# Installed files:
# $USD_ROOT/plugin/usd
# ├── usdProctestFileFormat
# │ └── resources
# │ └── plugInfo.json
# └── usdProctestFileFormat.so
Add the path to the installed pluginInfo.json
to the environment variable PXR_PLUGINPATH_NAME
then run usdview src/usdProctestFileFormat/scenes/proctest.usda
. If everything is setup correctly a cube should be shown.
- Inspired from Weta's USDPluginExamples