Navigation
API > API/Plugins > API/Plugins/USDExporter > API/Plugins/USDExporter/UUsdConversionBlueprintLibrary
Description
Duplicates all provided Prims one-by-one, performing the requested DuplicateType. See the documentation on EUsdDuplicateType for the different operation types.
The duplicated prims may be renamed in order to have valid names for the target location, which is why this function returns the pasted prim paths. This function returns just paths instead of actual prims because USD needs to respond to the notices about the created prim specs before the prims are fully created, which means we wouldn't be able to return the created prims yet, in case this function was called from within an SdfChangeBlock.
| Name | DuplicatePrims |
| Type | function |
| Header File | /Engine/Plugins/Importers/USDImporter/Source/USDExporter/Public/USDConversionBlueprintLibrary.h |
| Include Path | #include "USDConversionBlueprintLibrary.h" |
| Source | /Engine/Plugins/Importers/USDImporter/Source/USDExporter/Private/USDConversionBlueprintLibrary.cpp |
UFUNCTION (BlueprintCallable, Category="USD|Prim utils")
static TArray < FString > DuplicatePrims
(
const FString & StageRootLayer,
const TArray < FString > & PrimPaths,
EUsdDuplicateType DuplicateType,
const FString & TargetLayer
)
Paths to the duplicated prim specs, after they were added as children of ParentPrim.
Parameters
| Name | Remarks |
|---|---|
| StageRootLayer | Path to the root layer of the stage from which we should fetch the Prims |
| PrimPaths | Prims to duplicate |
| DuplicateType | Type of prim duplication to perform |
| TargetLayer | Target layer to use when duplicating, if relevant for that duplication type |