set_transform_helper

omni.kit.stage_template.core.stage_core.set_transform_helper(prim_path, translate=Gf.Vec3d(0.0, 0.0, 0.0), euler=Gf.Vec3d(0.0, 0.0, 0.0), scale=Gf.Vec3d(1.0, 1.0, 1.0))

Sets the transformation for a specified USD primitive given translation, rotation (Euler angles), and scale.

Parameters
  • prim_path (str) – The SDF path to the USD primitive that will be transformed.

  • translate (Gf.Vec3d) – A Vec3d representing the translation values along the X, Y, and Z axes. Defaults to (0, 0, 0).

  • euler (Gf.Vec3d) – A Vec3d representing the Euler rotation angles in degrees around the Z, Y, and X axes, respectively. Defaults to (0, 0, 0).

  • scale (Gf.Vec3d) – A Vec3d representing the scale factors along the X, Y, and Z axes. Defaults to (1, 1, 1).