How does OpenUSD find a studio plugin at runtime?
- Exam domain
- Customizing USD6% of the exam
- Difficulty
- Medium
- In this mock
- 3 questions on this domainPractise this domain
Why the exam asks this
Customizing USD (6% of the exam)
Objective in the exam guide: Understand USD plugin development to extend USD's functionality
USD plugin development is named.
Why A is the answer
Through a plugInfo.json file in a directory listed on the plugin search path
The Plug system reads plugInfo.json files from registered paths, including those set through the PXR_PLUGINPATH_NAME environment variable.
Remember: plugInfo.json on the plugin path.
How it works
The Plug system discovers plugins from plugInfo.json files.
In detail
- plugInfo.json describes plugins.
- Search paths register them.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Through a plugInfo.json file in a directory listed on the plugin search pathRight
plugInfo.json on the plugin path.
B. Plugins must be compiled into the OpenUSD source tree and shipped as a custom build of the librariesWrongMost tempting
Plugins load without rebuilding USD.
Why it tempts: Older libraries needed rebuilds.
C. The renderer loads them from its own settingsWrong
Renderers do not register USD plugins.
D. Through a reference to the plugin in each layerWrong
Layers do not reference plugins.
Use case
An illustrative scenario, not a real incident.
Illustrative: a studio sets PXR_PLUGINPATH_NAME to its plugin folder on every workstation.
See it in different ways
sequenceDiagram participant P0 as Process participant P1 as Plug registry participant P2 as plugInfo.json P0->>P1: start P1->>P2: scan plugin paths P2-->>P1: types and libraries
How to read this chart
- 1. Process sends "start" to Plug registry.
- 2. Plug registry sends "scan plugin paths" to plugInfo.json.
- 3. Plug registry gets a reply from plugInfo.json: "types and libraries".
flowchart LR S0["Build or write plugin"] --> S1["Write plugInfo.json"] --> S2["Add to plugin path"] --> S3["Restart tool"]
How to read this chart
- Read it in order: Build or write plugin, then Write plugInfo.json, then Add to plugin path, then Restart tool.