add_usd_reference
Add an external USD reference composition arc to a prim, linking an asset layer into a stage and optionally retargeting it to a prim inside that layer.
Instructions
Add an external reference composition arc to a prim (asset_path -> target prim, optionally re-targeted by prim_path_for_target).
Returns: { stage_name: string, prim_path: string, asset_path: string, added: bool, position: string, errors: [string]? }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| position | No | One of "FrontOfPrependList" / "BackOfPrependList" / "FrontOfAppendList" / "BackOfAppendList" (default BackOfPrependList — pxr::'s default for the strongest-anonymous opinion). | |
| prim_path | Yes | Prim that owns the reference (target of the composition op on the consumer side). | |
| asset_path | Yes | Identifier of the layer to reference (absolute file path or USD-style relative identifier). | |
| stage_name | Yes | Name the stage was registered under. | |
| prim_path_for_target | No | Prim inside the referenced layer to import. Empty (default) means the referenced layer's pseudo-root '/'. The default matches the common "import the whole layer" use case. |