saveLayer#
Fully qualified name: usdex::core::saveLayer
- bool usdex::core::saveLayer(
- pxr::SdfLayerHandle layer,
- std::optional<std::string_view> authoringMetadata = std::nullopt,
- std::optional<std::string_view> comment = std::nullopt,
Save the given
SdfLayerwith an optional comment.Note
This does not impact sublayers or any stages that this layer may be contributing to. This is to preserve authoring metadata on referenced layers that came from other applications. See SdfLayer Authoring for more details on
setLayerAuthoringMetadata.- Parameters:
layer – The layer to be saved.
authoringMetadata – The provenance information from the host application. See SdfLayer Authoring for details.
comment – The comment will be authored in the layer as the
SdfLayercomment.
- Returns:
A bool indicating if the save was successful.