how to get absolute X/Y coordinates for a display object nested within Display Groups?

Having some issues/confusion with display groups :frowning:

For fault finding, how can I print out the Absolute coorindates of a display object (e.g. image) that is buried within Display Groups? (i.e. don’t want the relative position)

That is position relative to the actual display resolution, so say: Xleft, Xright, Ytop, Ybottom co-ordinates type thing.

[import]uid: 140210 topic_id: 25807 reply_id: 325807[/import]

I know this is a old post, but just to register here the answer for future people looking for it.

You can use the following code  to get the object absolute position.

local xAbsPos, yAbsPos = object:localToContent(0,0)

I know this is a old post, but just to register here the answer for future people looking for it.

You can use the following code  to get the object absolute position.

local xAbsPos, yAbsPos = object:localToContent(0,0)