“cmd.origin” sets the center of rotation about a selection. If an object name is specified, it can be used to set the center of rotation for the object (for use in animation and editing).
cmd.origin(string object-or-selection)
def origin(selection="(all)", object=None, position=None, state=0):