getLayerIfDefOnSessionOrItsSublayers#
Fully qualified name: isaacsim::core::includes::getLayerIfDefOnSessionOrItsSublayers
- inline PXR_NS::SdfLayerRefPtr isaacsim::core::includes::getLayerIfDefOnSessionOrItsSublayers(
- PXR_NS::UsdStageRefPtr stage,
- const PXR_NS::SdfPath &path,
- Finds if the given prim path has a “def” primSpec on session layer or its sublayers. - Specialized version of getLayerIfSpecOnSessionOrItsSublayers that specifically looks for prim specifications with “def” specifier type. This excludes “over” prims and focuses only on defining prim specifications. - See also - getLayerIfSpecOnSessionOrItsSublayers for general spec search - Note - If you want to find attributeSpec use getLayerIfSpecOnSessionOrItsSublayers instead - Parameters:
- stage – [in] USD stage containing the layers to search 
- path – [in] The prim path to check for “def” primSpec 
 
- Returns:
- SdfLayerRefPtr Layer that contains the “def” prim spec, or nullptr if not found