# Offset position of control from GUI panel

**URL:** <https://forum.babylonjs.com/t/offset-position-of-control-from-gui-panel/3962>\
**Category:** Questions\
**Created:** [June 18, 2019, 7:48am UTC](https://forum.babylonjs.com/t/offset-position-of-control-from-gui-panel/3962 "2019-06-18T07:48:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![coalfaceed](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/coalfaceed/32/2963_2.png) [@coalfaceed](https://forum.babylonjs.com/u/coalfaceed)\
**Post date:** [June 18, 2019, 7:48am UTC](https://forum.babylonjs.com/t/offset-position-of-control-from-gui-panel/3962/1 "2019-06-18T07:48:58Z")

</div>

[https://www.babylonjs-playground.com/#QJDZ4G#3](https://www.babylonjs-playground.com/#QJDZ4G#3)

Hi,

Endgame is having the sphere surrounded by panels with videos playing… so

As per the above, I want to get the offset position of the holographic buttons. Since I can’t seem to apply the video texture to the GUI.3dButton controls, I wanted to get the position of the buttons, set them to visible false and put a standard mesh I can apply textures to in it’s place.

Although the panels are linked to the original node, their relative position is just the anchor - it doesn’t give me the actual offset co-ordinates of each individual position taking into consideration the margins from the SpherePanel? I can see the container children mesh nodes have Transform Positions but no idea how to access this in code (children, position properties etc are always undefined on the button).

Otherwise - Is there a way to recreate the SpherePanel structure (things positioned in the orbit of a Mesh) using just Meshes, since I seem to be quite restricted when using the GUI library for things that aren’t necessarily GUI?

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [June 19, 2019, 1:43pm UTC](https://forum.babylonjs.com/t/offset-position-of-control-from-gui-panel/3962/2 "2019-06-19T13:43:44Z")

</div>

Is button.mesh.TransformNode what you are looking for ???

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [June 19, 2019, 1:51pm UTC](https://forum.babylonjs.com/t/offset-position-of-control-from-gui-panel/3962/3 "2019-06-19T13:51:05Z")

</div>

Also about the distribution, it could look like this if you need a circle more than a sphere: [https://www.babylonjs-playground.com/#QJDZ4G#5](https://www.babylonjs-playground.com/#QJDZ4G#5)

---

<div class="post-metadata">

**Author:** ![coalfaceed](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/coalfaceed/32/2963_2.png) [@coalfaceed](https://forum.babylonjs.com/u/coalfaceed)\
**Post date:** [June 19, 2019, 2:09pm UTC](https://forum.babylonjs.com/t/offset-position-of-control-from-gui-panel/3962/4 "2019-06-19T14:09:37Z")

</div>

This is excellent - I didn’t really want to touch any Math but hey ho 🙂 Trig never killed anybody.

So I know the reason for GUI but it sounds like I can do alot with meshes anyway, if they have a click pointer event…

Thanks again guys, stars.
