omni::connect::core::copyPrim

Defined in omni/connect/core/StageAlgo.h

bool omni::connect::core::copyPrim(const pxr::UsdPrim &prim, const pxr::SdfPath &destination)

Copy the given UsdPrim to a new location.

Multi-layer editing and Omniverse Live editing present challenges when trying to copy prims. We cannot necessarily perform a simple copy of the SdfPrimSpecifier on the current UsdEditTarget, but may need to account for the full layer stack and opinions.

Parameters
  • prim – The prim to be removed.

  • destination – The path of the new copy.

Returns

A bool indicating if the copy was successful.