setLocalTransformMatrix#

Fully qualified name: isaacsim::core::includes::setLocalTransformMatrix

inline bool isaacsim::core::includes::setLocalTransformMatrix(
pxr::UsdPrim prim,
const pxr::GfMatrix4d &mtxIn,
pxr::UsdTimeCode timecode = pxr::UsdTimeCode::Default(),
bool skipEqualSetForTimeSample = false,
std::unique_ptr<PXR_NS::SdfChangeBlock> *parentChangeBlock = nullptr,
)#

Sets local transform matrix of a prim.

Parameters:
  • prim – [inout] The prim to set local transform matrix to.

  • mtxIn – [in] The local transform matrix.

  • timecode – [in] Time code for the transform operation.

  • skipEqualSetForTimeSample – [in] Whether to skip setting if value is equal.

  • parentChangeBlock – [inout] Optional parent change block for batching operations.

Returns:

true if the operation was successful, false otherwise.