Getting an objects "REAL" world space position

Here is a strange one. Does anyone have any ideas on how to get an objects "REAL" world space positions? I currently use

xform -q -ws -t

and that works fine, as long as the object hasn't had its' transforms frozen. If it has, using the xform command will return 0,0,0 no matter where the object is in worldspace.

So is there a way to get the "REAL" worldspace coordinates. I tried using the xform command on the shapenode...no luck.

So where would Maya be keeping the actual worldspace position, and how would I access it?

pointers and ideas welcomed!

Once you freeze transforms on an object, all local coordinates are transformed into world space. The concept of where the object "is" changes significantly after a freeze transforms.

I will assume that maybe what you really want is the pivot location? This can be accessed with the -sp or -rp flags of the xform command. Also this can be retrieved with getAttr objectName.scalePivot.

--JeffD

Thanks Jeff, worked perfectly!