# How to Center of Origin to Object Center

**URL:** <https://discourse.slicer.org/t/how-to-center-of-origin-to-object-center/36503>\
**Category:** Support\
**Created:** [May 30, 2024, 6:49pm UTC](https://discourse.slicer.org/t/how-to-center-of-origin-to-object-center/36503 "2024-05-30T18:49:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![manjula](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/manjula/32/80981_2.png) [@manjula](https://discourse.slicer.org/u/manjula)\
**Post date:** [May 30, 2024, 6:49pm UTC](https://discourse.slicer.org/t/how-to-center-of-origin-to-object-center/36503/1 "2024-05-30T18:49:43Z")

</div>

Hi all,

I am working on full workflow for Orthognathic surgery through the 3D Slicer only and planning to make a tutorial. One last piece of puzzle i want to work out is the how to make the maxilla or the mandible to move around the object center. (not this way [Script repository — 3D Slicer documentation](https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html#rotate-a-node-around-a-specified-point))

Is there a way to without closing the entire scene and reloading the stl files separately to center the transformation origin to the center of the object ? this will make Orthognathic surgery workflow very easy.

> **[Recording 2024-05-30 235552.mp4](https://drive.google.com/file/d/1r5S9AguEYa6muIjFAp4AYOyRpXDR86pL/view?usp=sharing)**
>
> Google Drive file.

> **[Recording 2024-05-31 001400.mp4](https://drive.google.com/file/d/1-oSK8-RRMno2TqcBwLgHG9jb9tbmrl8Q/view?usp=sharing)**
>
> Google Drive file.

Thank you

---

<div class="post-metadata">

**Author:** ![Sunderlandkyl](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sunderlandkyl/32/79987_2.png) [@Sunderlandkyl](https://discourse.slicer.org/u/Sunderlandkyl)\
**Post date:** [May 30, 2024, 8:02pm UTC](https://discourse.slicer.org/t/how-to-center-of-origin-to-object-center/36503/2 "2024-05-30T20:02:01Z")

</div>

You can specify the center of transformation in Python using vtkMRMLTransformNode::SetCenterOfTransformation().

You can also update the center of transformation from the GUI, see this video starting @ 0:18: [https://youtu.be/ielxgJS-6SI?si=QXfVpDDE-5fBx48p&t=18](https://youtu.be/ielxgJS-6SI?si=QXfVpDDE-5fBx48p&t=18).
