How do i get the world rotation of an instanced object?

Assuming i have a very simple geometry node tree like this:

result:

Now i wanna save the world rotation of every instance …but i don’t know how to calculate it.

Also the object itself (here a subdivided plane) can be rotated and translated - this should be taken into account.

Any help appreciated.

Just plug the output of your Random node to the StoreNamedAttr…
Thought i think this is a superfluous step… the rotation is already a property of the instance (you can see it clearly in the Spreadsheet editor).

are you sure that i get the world coordinates? i think i will get the local rotation of each instance…

Oh… right…
Then I think you need to use drivers for this (i can’t figure other way to pass the object’s rotation to GN)…
Something like this perhaps:

I didn’t verified the ‘Rot’ values… I think they are ok, but if not, then we need to invert the root object’s rotation before rotating the instance rotation.