_safeCreatePrim#
Fully qualified name: usd_optimize::_safeCreatePrim
- void usd_optimize::_safeCreatePrim(
- const PXR_NS::UsdStageWeakPtr &usdStage,
- const PXR_NS::SdfPath &primPath,
- const std::string &typeName,
- const std::string &parentTypeName,
- PXR_NS::SdfLayerHandle &editLayer,
Create a prim in the stage by defining it and any parents that do not currently exist in the stage.
Maintain inherited prim state by only defining prims that are not present in the stage regardless of specifier
- Parameters:
usdStage – The usd stage
primPath – The path of the prim created
typeName – Type name for the prim created
parentTypeName – Type name for any parent prims created
editLayer – Layer in which the prim specs should be created