USD Asset#

Bag.usd is a sample that provides core Action Graph usages in Configurators. Action Graph makes use of the Omni Graph runtime. This enables a USD Stage to describe compute capabilities. You can follow the Configurator Sample Instructions to install USD Composer and open this USD Stage.

Let’s explore the contents:

Prim Path

Stage Contents

/World/Graphs/SystemStartup

Initializes the interactive experience. Note /World/Graphs/SystemStartup/on_keyboard_input: This node toggles the interactive viewport experience on hotkey CTRL+ALT+C. When toggled on, a user can click-drag in the viewport to orbit the bag. Note the Set Viewport Mode nodes - those manage the viewport state.

/World/Graphs/VariantController

This graph reacts to messages sent from the web page and sends responses back. The key nodes here are the On MessageBus Event and Send MessageBus Event nodes. Pay extra attention to the Script Node in this graph: It registers events that should be sent to the web page.
Note the Lock Viewport Render node. This allows the viewport to be frozen while the stage state is changed - then faded back to normal rendering.

/World/Graphs/OutwardMessaging

Any time a user selects something in the viewport, this graph sends a message to the web page containing the USD Prim Path to the selected item.

/World/Cameras

Contains a camera rig. Note that here Action Graph is used to provide the logic. You can do a lot with Action Graphs.

/World/Backdrops

Contains several backgrounds whose visibilities are managed by the /World/Backdrops Prim’s *ActiveBackdrop* USD Variant Set.

/World/Configurable_Assets

This is the “product” of the configurator. It also makes use of USD Variant Sets to control its appearance.

Developers should explore the Action Graphs. We are providing inline notes to explain capabilities.

Next Steps: Message Execution Flow