There are two possible answers to the question.
The "center" of an object may mean:
Center bounding object : you can get it like this (using python)
bbx = cmds.xform(object, q=True, bb=True, ws=True) # world space centerX = (bbx[0] + bbx[3]) / 2.0 centerY = (bbx[1] + bbx[4]) / 2.0 centerZ = (bbx[2] + bbx[5]) / 2.0
pivot point location . This is not the same as the position of the object, since you can move the axis without changing the translation number, which may indicate maya. The location of a world point in the world can be obtained using:
pivot = cmds.xform(object, q=True, rp=True, ws=True)
source share