addAssetInterface#

Fully qualified name: usdex::core::addAssetInterface

bool usdex::core::addAssetInterface(
pxr::UsdStagePtr stage,
const pxr::UsdStagePtr source,
)#

Add an Asset Interface to a stage, which payloads a source stage’s contents.

This function creates a payload to the source stage’s contents as the default prim on the stage.

It (re)configures the stage with the source stage’s metadata, payloads the defaultPrim from the source stage, and annotates the Asset Interface with USD model metadata including component kind, asset name, and extents hint.

Parameters:
  • stage – The stage’s edit target will become the Asset Interface

  • source – The stage that the Asset Interface will target as a Payload

Returns:

True if the Asset Interface was added successfully, false otherwise