Changes the center position of the rotation or scale for the selected Mesh or Xform.
- Windows 10/Ubuntu 20.04
- Omniverse Create 2022.1.1 (Omniverse Kit 103)
- Omniverse Code 2022.1.0
- Copy "ft_lab.Tools.SetOrigin" to the exts folder in Omniverse.
(ov/pkg/create-2022.1.1/exts , etc.) - Run Omniverse Create.
- Activate "ft_lab.Tools.SetOrigin" in the Extension window.

- Select Mesh or Xform.
- Select "Tools"-"Set Origin"-"Center of Geometry" from the menu to move the center of the manipulator to the center of the geometry.
- Select "Tools"-"Set Origin"-"Lower center of Geometry" from the menu to move the center of the manipulator to the lower center of the geometry.
This Set Origin function adjusts the Translate and Pivot of the Prim.
Add "ToolSetOrigin" to omni.kit.commands.
The argument "prim" specifies Usd.Prim.
The argument "center_position" specifies the center position in world coordinates.
import omni.kit.commands
from pxr import Usd, Gf
stage = omni.usd.get_context().get_stage()
omni.kit.commands.execute('ToolSetOrigin',
prim=stage.GetPrimAtPath("/World/xxx"),
center_position=Gf.Vec3f(50.0, -50.0, 0.0))
