getLayerAuthoringMetadata#

Fully qualified name: usdex::core::getLayerAuthoringMetadata

std::string usdex::core::getLayerAuthoringMetadata(
const pxr::SdfLayerHandle layer,
)#

Get metadata from the SdfLayer indicating the provenance of the data.

This function retrieves the provenance information from the “creator” key of the CustomLayerData.

Note

This metadata is strictly informational, it is not advisable to drive runtime behavior from this metadata. In the future, the “creator” key may change, or a more formal specification for data provenance may emerge.

Parameters:

layer – The layer to read from

Returns:

The provenance information for this layer, or an empty string if none exists