resetXformOpProperties#

Fully qualified name: isaacsim::foundation::usd::openusd::resetXformOpProperties

void isaacsim::foundation::usd::openusd::resetXformOpProperties(
int64_t stageId,
const std::string &path,
)#

Ensures a prim has the canonical transform ops order [xformOp:translate, xformOp:orient, xformOp:scale].

Removes non-standard transform ops and stray :unitsResolve properties. Missing transform ops are created with double precision. The world pose is preserved across the reorganization.

After this call callers can set translations, orientations, and scales by writing directly to xformOp:translate, xformOp:orient, and xformOp:scale - without resorting to the destructive MakeMatrixXform path.

Parameters:
  • stageId – [in] Stage to operate on.

  • path – [in] Absolute SdfPath of the prim to normalize.

Throws:

std::invalid_argument – If the prim does not exist or is not Xformable.