08-07-2014 10:07 AM
Hi,
I would like to obtain the 3d coordinates of the green spheres after applying a rotation and translation of its parent, the red rectangle. How could this be achieved?
08-07-2014 10:16 AM - edited 08-07-2014 10:16 AM
Keep a reference to the object when composing the scene and then, at the point int ime where you require the data, cast the reference to a sphere reference and then you can access the properties.
OR you can name them, then retrieve an object based on name, cast to sphere and read the coordinates.
Shane.
08-07-2014 12:07 PM
I tried to name the sphere and then retrieve the coordinates after the rotation of the parent object but to no success. When retrieving the rotation in the child object only its initial values are shown (Get Rotation VI). Is this what you meant?
08-07-2014 12:10 PM
I don't have code in front of me, I can't test.
Hmm, you might have a point, the actual XYZ positions are not readable?
08-07-2014 01:26 PM
Unfortunately they don't seem to be so. I will post the vi ASAP.
05-27-2017 01:53 PM
Any answers to this post?
How do I get the global position and orientation of an object in a 3D scene?
The get rotation and get translation vi are local to the object, and the object is >10 children deep.....