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.