24 #ifndef PXR_USD_USD_PAYLOADS_H 25 #define PXR_USD_USD_PAYLOADS_H 28 #include "pxr/usd/usd/api.h" 33 #include "pxr/usd/sdf/path.h" 36 PXR_NAMESPACE_OPEN_SCOPE
111 explicit operator bool() {
return bool(_prim); }
117 PXR_NAMESPACE_CLOSE_SCOPE
119 #endif // PXR_USD_USD_PAYLOADS_H USD_API bool SetPayloads(const SdfPayloadVector &items)
Explicitly set the payloads, potentially blocking weaker opinions that add or remove items.
UsdListPosition
Specifies a position to add items to lists.
USD_API bool AddPayload(const SdfPayload &payload, UsdListPosition position=UsdListPositionBackOfPrependList)
Adds a payload to the payload listOp at the current EditTarget, in the position specified by position...
USD_API bool RemovePayload(const SdfPayload &ref)
Removes the specified payload from the payloads listOp at the current EditTarget.
USD_API bool AddInternalPayload(const SdfPath &primPath, const SdfLayerOffset &layerOffset=SdfLayerOffset(), UsdListPosition position=UsdListPositionBackOfPrependList)
Add an internal payload to the specified prim.
Represents a payload and all its meta data.
UsdPrim is the sole persistent scenegraph object on a UsdStage, and is the embodiment of a "Prim" as ...
A path value used to locate objects in layers or scenegraphs.
UsdPayloads provides an interface to authoring and introspecting payloads.
USD_API bool ClearPayloads()
Removes the authored payload listOp edits at the current EditTarget.
The position at the back of the prepend list.
Represents a time offset and scale between layers.
const UsdPrim & GetPrim() const
Return the prim this object is bound to.