“cmd.center” translates the window, the clipping slab, and the origin to a point centered within the atom selection.
cmd.center(string selection, int state, int origin)
def center(selection="all", state=0, origin=1, animate=0):
center | api