3
$\begingroup$

When you add an Object Info node for an object that is the child of another object the location and rotation outputs are its world coordinate position and rotation. I would like to find out the location and rotation of an object in its local coordinates. In other words, as if the parent object was at the center of the world and not rotated at all. Any help would be appreciated!

$\endgroup$
0

1 Answer 1

2
$\begingroup$

Using Relative Location/Rotation from Object Info node seems to be value you are looking for ...

enter image description here

Cube at World origin is Parent, Cube.001 is a Child ... When you move Child object values at Spread Sheet are changing. When you move by Parent object - values are kept.

In other words - Location values of Object Info node set to Relative gives you child location like parent object is at child's 0/0/0 local world origin.

$\endgroup$
3
  • $\begingroup$ Also known as Local transforms $\endgroup$
    – Gorgious
    Dec 2, 2022 at 21:36
  • $\begingroup$ Thanks @validu. But that is not quite what I would like to find out. For example in this image you can see that if I create a new object and put your node setup in it (bottom image), the information I get is the child cube's world position and rotation. 1drv.ms/u/s!AiE01B39ctoQhOpA9Wdx5R7yhrP7Uw?e=ZSfVdU. I have tried just subtracting the position and rotation of the parent from the child. But apparently its more complicated than that. I have been struggling with this for a while. $\endgroup$
    – joe_123
    Dec 3, 2022 at 2:43
  • $\begingroup$ I think I didn't get your point. Probably add some sketch (drawing) explaining what position (or distance) are you aiming to calculate. Like now it does what I understood you asked for. When I add Plane with GN, the Cube.001 (child) position is calculated from Plane position = means Plane is taken into account as World Origin. $\endgroup$
    – vklidu
    Dec 3, 2022 at 9:46

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .