Navigation
API > API/Plugins > API/Plugins/USDUtilities
References
| Module | USDUtilities |
| Header | /Engine/Plugins/Importers/USDImporter/Source/USDUtilities/Public/USDConversionUtils.h |
| Include | #include "USDConversionUtils.h" |
| Source | /Engine/Plugins/Importers/USDImporter/Source/USDUtilities/Private/USDConversionUtils.cpp |
namespace UsdUtils
{
TArray< UE::FSdfPath > UsdUtils&58;&58;DuplicatePrims
&40;
const TArray< UE::FUsdPrim > & Prims,
EUsdDuplicateType DuplicateType,
const UE::FSdfLayer & TargetLayer
&41;
}
Remarks
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. Paths to the duplicated prim specs, after they were added as children of ParentPrim.
Parameters
| Name | Description |
|---|---|
| Prims | Prims to duplicate |
| DuplicateType | Type of prim duplication to perform |
| TargetLayer | Target layer to use when duplicating, if relevant for that duplication type |