Expand description
High-level USD composition and authoring APIs.
This module mirrors OpenUSD’s pxr/usd/usd layer. The stage implementation
lives in the local stage module, while this module re-exports the public
Usd* surface under openusd::usd.
Structs§
- Attribute
- Stage-composed attribute handle. Mirrors C++
UsdAttribute. - Attribute
Query - Cached value query for one attribute. Mirrors C++
UsdAttributeQuery. - ClipsAPI
- Read/write view of the value-clip metadata on a prim (C++
UsdClipsAPI). - Collection
- A handle to one
UsdCollectionAPIinstance: the prim it is applied to plus the instance name. Cheap to construct and clone; reads pull from the stage on demand. - Committed
Change - A committed edit handed to
StageSink::after_commit(the data the formerObjectsChangednotice carried). - Connection
Graph - A directed index of every authored attribute connection on a stage.
- Diff
- A transferable diff of one stage edit, produced by a diff recorder
(
ReplayStage,UndoStage) and replayed byStage::apply_diff. - Edit
Context - RAII guard that scopes a
Stageedit-target switch, restoring the previous target when dropped. Created byStage::edit_context; mirrors C++UsdEditContext. - Edit
Target - Identifies which layer in a
Stagereceives authored opinions, and how stage-namespace paths map into that layer’s namespace. - Field
Value - A field and its authored value, as carried by
Edit::Create. - Membership
Query - A resolved, stage-free membership predicate for a collection (the
relationship-linking mode). Build it once (see
compute_membership_query) and queryis_path_includedcheaply; it clones freely so consumers can cache one per collection path. - Namespace
Editor - Batches namespace edits — prim/property renames, reparents, and deletes —
and applies them to a
Stagewith full target/connection/reference fixup. Mirrors C++UsdNamespaceEditor. - Pending
Change - A staged, not-yet-committed edit to one of the stage’s layers, handed to
StageSink::before_commit— the stage-tier view of one layer’ssdf::PendingLayerChange. - Prim
- Stage-composed prim handle. Mirrors C++
UsdPrim. - Prim
Index Ref - A handle to a single prim’s composition index, the analog of C++
PcpPrimIndexreached viaUsdPrim::GetPrimIndex. - Prim
Predicate - Predicate used to filter prim traversal by resolved status bits.
- Prim
Status - Resolved stage-level status bits for a prim.
- Relationship
- Stage-composed relationship handle. Mirrors C++
UsdRelationship. - Replay
Stage - A
Stagethat records the forwardDiffof every edit it commits. - Stage
- A composed USD stage.
- Stage
Builder - Builder for configuring and opening a
Stage. - Stage
Population Mask - Population mask limiting which prim paths are exposed by a
Stage. - Time
Code - A numeric time code identifying when an attribute value is resolved.
Mirrors C++
UsdTimeCode. - Undo
Stage - A
Stagethat records the inverse of every edit it commits, for undo. - Variant
Sets - The variant sets composed onto a prim. Mirrors C++
UsdVariantSets, reached throughPrim::variant_sets. - Weak
Stage - A non-owning handle to a
Stage(C++UsdStageWeakPtr).
Enums§
- Apply
Mode - How
Stage::apply_diffinterprets aDiff’s paths. - Edit
- One operation of a
Diff, in the edited layer’s namespace. - Edit
Target Arc - Composition arc kind selecting which arc on a prim an arc-based
EditTargetwrites into (C++UsdEditTarget::Reference/Inherit/Specialize/Payload). Built viaStage::edit_target_for_nodeorPrim::edit_target_for_arc. - Expansion
Rule - How a collection’s
includes/excludestargets expand to members (collection:<name>:expansionRule). - Initial
Load Set - Initial payload loading behavior for a stage.
- Interpolation
Type - Stage-level interpolation mode for time-sampled attributes.
- Load
Policy - How deeply a
Stage::loadcall expands payloads. Mirrors C++UsdLoadPolicy. - Namespace
Edit Error - Errors raised while staging, validating, or applying a namespace edit.
- Path
Rule - The rule attached to one path in a resolved
MembershipQuerymap, including theExcludesentinel that marks an excluded subtree. - Provenance
- Where a committed edit originated, which determines the namespace its
CommittedChangepaths are reported in. - Schema
Kind - How a schema relates to its prim (C++
UsdSchemaKind). - Stage
Authoring Error - Errors raised by
Stage’s authoring methods.
Traits§
- Schema
Base - Common surface shared by every schema view type (C++
UsdSchemaBase). - Stage
Sink - An observer of a
Stage’s composed-scene changes and lifecycle events.
Functions§
- apply_
collection - Apply
UsdCollectionAPItoprimwith instance namename(addsCollectionAPI:<name>toapiSchemas) and return a handle. Author its membership via the returnedCollection’s setters /include_path/exclude_path. - collections_
on - Every
UsdCollectionAPIinstance applied toprim, decoded from itsapiSchemas(CollectionAPI:<name>). - compute_
included_ paths - Enumerate the paths that
queryincludes onstage, restricted to the primspredicateadmits (spec §15.2). Returns prim members in traversal order; underexpandPrimsAndPropertieseach included prim’s member properties follow it, and explicitly listed property targets are included too. - is_
collection_ api_ path - If
pathis a collection identity path<prim>.collection:<name>, return(prim, name). Used to detect when anincludestarget points at another collection (chained collections). A deeper property path likecollection:<name>:includesis not a collection identity and yieldsNone.
Type Aliases§
- Path
Expansion Rule Map - Maps each authored/derived path to the rule that governs it (the
Excludesentinel marks excluded subtrees). The resolved form of a collection’s includes/excludes/expansionRule/includeRoot opinions. - Stage
Sink Id - A
sink::Idfor aStageSinkinstalled on aStage.