# How to get a static meshes socket location?

**URL:** <https://forums.unrealengine.com/t/how-to-get-a-static-meshes-socket-location/471565>\
**Category:** Asset Creation\
**Tags:** sockets, Instanced-Mesh, unreal-engine, transform, question\
**Created:** [September 18, 2020, 9:18pm UTC](https://forums.unrealengine.com/t/how-to-get-a-static-meshes-socket-location/471565 "2020-09-18T21:18:11Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![PerCat](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/percat/32/479573_2.png) [@PerCat](https://forums.unrealengine.com/u/PerCat)\
**Post date:** [September 18, 2020, 9:18pm UTC](https://forums.unrealengine.com/t/how-to-get-a-static-meshes-socket-location/471565/1 "2020-09-18T21:18:11Z")

</div>

I want the world space transform of a mesh socket so I can attach roads to intersections. But the get socket transform nodes seems to only work on scene component not static meshes, so the location always returns null.

Is there a way to get a static meshes socket? In the world space?

---

<div class="post-metadata">

**Author:** ![Tuerer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuerer/32/1008648_2.png) [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Post date:** [September 18, 2020, 10:03pm UTC](https://forums.unrealengine.com/t/how-to-get-a-static-meshes-socket-location/471565/2 "2020-09-18T22:03:02Z")

</div>

IDK, it works fine with meshes. Can you show your setup?

---

<div class="post-metadata">

**Author:** ![expose](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@expose](https://forums.unrealengine.com/u/expose)\
**Post date:** [September 18, 2020, 10:07pm UTC](https://forums.unrealengine.com/t/how-to-get-a-static-meshes-socket-location/471565/3 "2020-09-18T22:07:47Z")

</div>

you attach an invisible sphere on it with no colision, and then get this sphere location.  
it should work 🙂  
(this as driven me nuts for a while 🙂 )

---

<div class="post-metadata">

**Author:** ![DonBusso](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DonBusso](https://forums.unrealengine.com/u/DonBusso)\
**Post date:** [September 18, 2020, 10:25pm UTC](https://forums.unrealengine.com/t/how-to-get-a-static-meshes-socket-location/471565/4 "2020-09-18T22:25:30Z")

</div>

Hey.

It’s all there. Just pull out of your mesh to get socket transform (or location or rotation). Which ever one you need.

[Setting Up and Using Sockets With Static Meshes - Documentation][1]

 ![314197-getsockettransform.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/b/d/9bdf84992a11bc940a5f0b1df21fe5ac02423b74.png)

---

<div class="post-metadata">

**Author:** ![PerCat](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/percat/32/479573_2.png) [@PerCat](https://forums.unrealengine.com/u/PerCat)\
**Post date:** [September 18, 2020, 11:04pm UTC](https://forums.unrealengine.com/t/how-to-get-a-static-meshes-socket-location/471565/5 "2020-09-18T23:04:46Z")

</div>

This actually doesn’t work directly with HISMs. I’ll post my answer that I figured out but you actually have to get the parent instance transform then add that to the socket transform to get the actual local transform in world.

---

<div class="post-metadata">

**Author:** ![PerCat](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/percat/32/479573_2.png) [@PerCat](https://forums.unrealengine.com/u/PerCat)\
**Post date:** [September 18, 2020, 11:05pm UTC](https://forums.unrealengine.com/t/how-to-get-a-static-meshes-socket-location/471565/6 "2020-09-18T23:05:29Z")

</div>

This isn’t to far off of what I ended up having to do, I’ll post my answer that I figured out but you actually have to get the parent instance transform then add that to the socket transform to get the actual local transform in world.

---

<div class="post-metadata">

**Author:** ![PerCat](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/percat/32/479573_2.png) [@PerCat](https://forums.unrealengine.com/u/PerCat)\
**Post date:** [September 18, 2020, 11:06pm UTC](https://forums.unrealengine.com/t/how-to-get-a-static-meshes-socket-location/471565/7 "2020-09-18T23:06:07Z")

</div>

I figured out but you actually have to get the parent instance transform then add that to the socket transform to get the actual local transform in world.

 ![314222-getinstacnesocketloc.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/8/8/088a4327f3ef9b9923e33fcc782a555de414b4d8.png)

---

<div class="post-metadata">

**Author:** ![PerCat](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/percat/32/479573_2.png) [@PerCat](https://forums.unrealengine.com/u/PerCat)\
**Post date:** [September 18, 2020, 11:07pm UTC](https://forums.unrealengine.com/t/how-to-get-a-static-meshes-socket-location/471565/8 "2020-09-18T23:07:23Z")

</div>

This actually doesn’t work directly with HISMs. I’ll post my answer that I figured out but you actually have to get the parent instance transform then add that to the socket transform to get the actual local transform in world.

---

<div class="post-metadata">

**Author:** ![DonBusso](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DonBusso](https://forums.unrealengine.com/u/DonBusso)\
**Post date:** [September 18, 2020, 11:10pm UTC](https://forums.unrealengine.com/t/how-to-get-a-static-meshes-socket-location/471565/9 "2020-09-18T23:10:22Z")

</div>

I see what you mean now. But would it be easier to have a arrow component at the end point of the mesh. You could pull out its transform then.

---

<div class="post-metadata">

**Author:** ![PerCat](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/percat/32/479573_2.png) [@PerCat](https://forums.unrealengine.com/u/PerCat)\
**Post date:** [September 18, 2020, 11:22pm UTC](https://forums.unrealengine.com/t/how-to-get-a-static-meshes-socket-location/471565/10 "2020-09-18T23:22:21Z")

</div>

The arrow was what I was gonna do originally but then I came across sockets and realized that it will be much easier for my specific needs. Cheers!
