# Copy static mehs sockets

**URL:** <https://forums.unrealengine.com/t/copy-static-mehs-sockets/346586>\
**Category:** Asset Creation\
**Tags:** copy, socket, unreal-engine, question\
**Created:** [February 6, 2016, 11:02am UTC](https://forums.unrealengine.com/t/copy-static-mehs-sockets/346586 "2016-02-06T11:02:33Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![UDKAP](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@UDKAP](https://forums.unrealengine.com/u/UDKAP)\
**Post date:** [February 6, 2016, 11:02am UTC](https://forums.unrealengine.com/t/copy-static-mehs-sockets/346586/1 "2016-02-06T11:02:33Z")

</div>

Hi, is there a way to copy sockets from one Static mesh to another?

---

<div class="post-metadata">

**Author:** ![Shirk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shirk](https://forums.unrealengine.com/u/Shirk)\
**Post date:** [December 13, 2017, 6:20pm UTC](https://forums.unrealengine.com/t/copy-static-mehs-sockets/346586/2 "2017-12-13T18:20:05Z")

</div>

This would be helpful to speed up socket placement.

---

<div class="post-metadata">

**Author:** ![Emile](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Emile](https://forums.unrealengine.com/u/Emile)\
**Post date:** [May 7, 2018, 6:32pm UTC](https://forums.unrealengine.com/t/copy-static-mehs-sockets/346586/3 "2018-05-07T18:32:19Z")

</div>

Looking for the same thing. Would like this feature implemented if it doesn’t exist,

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_855895fd1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_855895fd1](https://forums.unrealengine.com/u/anonymous_user_855895fd1)\
**Post date:** [July 20, 2018, 9:54am UTC](https://forums.unrealengine.com/t/copy-static-mehs-sockets/346586/4 "2018-07-20T09:54:04Z")

</div>

This really annoyed me, so I came up with a blueprint library helper function, and a blutility to accomplish this.

The code for the function is:

```
void UTOTGameBPLibrary::ReplaceStaticMeshSockets(class UStaticMesh *Source, class UStaticMesh *Dest)
{
#if WITH_EDITOR
	if (Source != nullptr && Dest != nullptr && Source != Dest)
	{
		if (Source->Sockets.Num() > 0)
		{
			Dest->PreEditChange(NULL);
			Dest->Sockets.Empty();
			for (int32 i = 0; i < Source->Sockets.Num(); i++)
			{
				auto Sock = Source->Sockets[i];

				UStaticMeshSocket *NewSocket = NewObject<UStaticMeshSocket>(Dest);
				NewSocket->SocketName = Sock->SocketName;
				NewSocket->SetFlags(RF_Transactional);
				NewSocket->RelativeLocation = Sock->RelativeLocation;
				NewSocket->RelativeRotation = Sock->RelativeRotation;
				NewSocket->RelativeScale = Sock->RelativeScale;
				NewSocket->Tag = Sock->Tag;
				Dest->Sockets.Add(NewSocket);
			}
			Dest->PostEditChange();
			Dest->MarkPackageDirty();
		}
	}
#endif
}

```

and here is a screenshot of the Blutility:

 ![247932-replacestaticmeshsockets.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/c/0/6c088f7bcf26670aa585b46ec3ebf535218230c8.png)

---

<div class="post-metadata">

**Author:** ![Shmoopy1701](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/shmoopy1701/32/1194536_2.png) [@Shmoopy1701](https://forums.unrealengine.com/u/Shmoopy1701)\
**Post date:** [October 31, 2022, 3:31pm UTC](https://forums.unrealengine.com/t/copy-static-mehs-sockets/346586/5 "2022-10-31T15:31:56Z")

</div>

Feature still isn’t there. Incredibly inconvenient that you cannot just copy all the sockets from a mesh to another mesh. 😑

---

<div class="post-metadata">

**Author:** ![eVen\_eQual](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@eVen\_eQual](https://forums.unrealengine.com/u/eVen_eQual)\
**Post date:** [February 18, 2023, 1:41pm UTC](https://forums.unrealengine.com/t/copy-static-mehs-sockets/346586/6 "2023-02-18T13:41:08Z")

</div>

Hey, in Unreal Engine 5 you cannot import sockets into Unreal Engine as they are generated automatically by the editor based on the mesh’s pivot point and geometry. You can copy sockets from one mesh to another using the following steps:

- To copy sockets between meshes, you can select the source mesh and then select all the sockets you want to copy by holding down the Ctrl key and clicking on each socket.
- Then, right-click on one of the selected sockets and choose “Copy”.
- Next, select the destination mesh and right-click in the viewport to bring up the context menu.
- Choose “Paste Sockets Here” and the sockets will be added to the destination mesh.

Please note that this method only works if the meshes have the same number of vertices and are similar in shape. Hope this helps anyone thinking it is still not possible 🙂

---

<div class="post-metadata">

**Author:** ![Ares9323](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ares9323/32/1194521_2.png) [@Ares9323](https://forums.unrealengine.com/u/Ares9323)\
**Post date:** [April 5, 2023, 1:36pm UTC](https://forums.unrealengine.com/t/copy-static-mehs-sockets/346586/7 "2023-04-05T13:36:26Z")

</div>

> [@eVen\_eQual](#):
>
> Hey, in Unreal Engine 5 you cannot import sockets into Unreal Engine as they are generated automatically by the editor based on the mesh’s pivot point and geometry. You can copy sockets from one mesh to another using the following steps:
> 
> - To copy sockets between meshes, you can select the source mesh and then select all the sockets you want to copy by holding down the Ctrl key and clicking on each socket.
> - Then, right-click on one of the selected sockets and choose “Copy”.
> - Next, select the destination mesh and right-click in the viewport to bring up the context menu.
> - Choose “Paste Sockets Here” and the sockets will be added to the destination mesh.

Are you talking about Skeletal Meshes? I’m asking because in static meshes you can’t even select multiple sockets and there’s no “copy” option.

---

<div class="post-metadata">

**Author:** ![Ares9323](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ares9323/32/1194521_2.png) [@Ares9323](https://forums.unrealengine.com/u/Ares9323)\
**Post date:** [April 5, 2023, 3:12pm UTC](https://forums.unrealengine.com/t/copy-static-mehs-sockets/346586/8 "2023-04-05T15:12:06Z")

</div>

Thanks for your code, I extended it and made a plugin for UE5.1+, I’ll leave it here in case anyone needs it:

[StaticMeshUtilities.zip](https://forums.unrealengine.com/uploads/short-url/5FEq1zL0JinYNCinbIudgsFRvw9.zip) (11.4 MB)

It allows you to:

- Copy sockets from a source static mesh to N meshes, and choose whether or not to preserve the existing ones  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/5/3/753a16a1de946fb231ad3760e4258dd599221473.png)

- Delete all the sockets from N static meshes

- Create multiple sockets at once with a sequential number and a progressive offset  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/1/f/b1fd9e7683e48b30d75a9a390848cf00fb7bb346.png)

Example of the result of the previous window:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/5/4/3543ff8a6ec217442f270fb75e8baa8e4328fd72.jpeg)

---

<div class="post-metadata">

**Author:** ![Shmoopy1701](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/shmoopy1701/32/1194536_2.png) [@Shmoopy1701](https://forums.unrealengine.com/u/Shmoopy1701)\
**Post date:** [April 10, 2023, 12:11am UTC](https://forums.unrealengine.com/t/copy-static-mehs-sockets/346586/9 "2023-04-10T00:11:45Z")

</div>

Wow nice. Should put that in the store. 👍

---

<div class="post-metadata">

**Author:** ![Shmoopy1701](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/shmoopy1701/32/1194536_2.png) [@Shmoopy1701](https://forums.unrealengine.com/u/Shmoopy1701)\
**Post date:** [April 10, 2023, 3:00pm UTC](https://forums.unrealengine.com/t/copy-static-mehs-sockets/346586/10 "2023-04-10T15:00:38Z")

</div>

Quick question. How do you get that to work?

- added it to “Project/Plugins/StaticMeshUtilities”
- added entry to the Plugins section of the .UProject file
- generated project files
- compiled with no errors
- plugin shows as enabled in the Project \>\> Plugins

But do not see any options for it on the static mesh editor screen …

---

<div class="post-metadata">

**Author:** ![Ares9323](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ares9323/32/1194521_2.png) [@Ares9323](https://forums.unrealengine.com/u/Ares9323)\
**Post date:** [April 10, 2023, 5:40pm UTC](https://forums.unrealengine.com/t/copy-static-mehs-sockets/346586/11 "2023-04-10T17:40:49Z")

</div>

> [@Shmoopy1701](#):
>
> How do you get that to work?

Righ click one (or multiple) static mesh(es) and you should be able to see a new entry in the context menu called “scripted asset actions”

---

<div class="post-metadata">

**Author:** ![Shmoopy1701](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/shmoopy1701/32/1194536_2.png) [@Shmoopy1701](https://forums.unrealengine.com/u/Shmoopy1701)\
**Post date:** [April 10, 2023, 7:55pm UTC](https://forums.unrealengine.com/t/copy-static-mehs-sockets/346586/12 "2023-04-10T19:55:14Z")

</div>

Ahh nice it works. 👍

---

<div class="post-metadata">

**Author:** ![nomadic626](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nomadic626/32/537766_2.png) [@nomadic626](https://forums.unrealengine.com/u/nomadic626)\
**Post date:** [April 21, 2023, 11:52pm UTC](https://forums.unrealengine.com/t/copy-static-mehs-sockets/346586/13 "2023-04-21T23:52:20Z")

</div>

I installed it exactly like @Shmoopy1701 said but i do not see it pop up in the context menu? I’m in 5.0

---

<div class="post-metadata">

**Author:** ![Ares9323](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ares9323/32/1194521_2.png) [@Ares9323](https://forums.unrealengine.com/u/Ares9323)\
**Post date:** [April 22, 2023, 10:16am UTC](https://forums.unrealengine.com/t/copy-static-mehs-sockets/346586/14 "2023-04-22T10:16:53Z")

</div>

It’s made for 5.1 so it’s normal it’s not working in previous engine versions, it should work if you recompile the C++ code but you need to recreate the asset action utility ('cause blueprints are not backward compatible).

I’ll share a 4.27 compatible version as soon as I have some free time

---

<div class="post-metadata">

**Author:** ![Shmoopy1701](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/shmoopy1701/32/1194536_2.png) [@Shmoopy1701](https://forums.unrealengine.com/u/Shmoopy1701)\
**Post date:** [April 24, 2023, 12:07pm UTC](https://forums.unrealengine.com/t/copy-static-mehs-sockets/346586/15 "2023-04-24T12:07:00Z")

</div>

Ahh nice. Yep we have projects in multiple engine versions as well.

Weird that even copy pasting the blueprint nodes to a previous engine version doesn’t work either. You have to totally recreate the blueprint from scratch. 😑

---

<div class="post-metadata">

**Author:** ![Ares9323](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ares9323/32/1194521_2.png) [@Ares9323](https://forums.unrealengine.com/u/Ares9323)\
**Post date:** [April 24, 2023, 12:50pm UTC](https://forums.unrealengine.com/t/copy-static-mehs-sockets/346586/16 "2023-04-24T12:50:07Z")

</div>

> [@Shmoopy1701](#):
>
> Weird that even copy pasting the blueprint nodes to a previous engine version doesn’t work either.

Yeah, I’ve been there too.. I hate I can’t even copy material nodes to previous engine versions (so whenever I create a plugin for the marketplace I always try to make it in an older Engine version, this was not the case because I needed it in a project in particular).

---

<div class="post-metadata">

**Author:** ![Doctor\_Kannon](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/doctor_kannon/32/1130101_2.png) [@Doctor\_Kannon](https://forums.unrealengine.com/u/Doctor_Kannon)\
**Post date:** [June 6, 2024, 6:06am UTC](https://forums.unrealengine.com/t/copy-static-mehs-sockets/346586/17 "2024-06-06T06:06:51Z")

</div>

Thank you for this.

---

<div class="post-metadata">

**Author:** ![Sanglard\_TV](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sanglard_tv/32/88719_2.png) [@Sanglard\_TV](https://forums.unrealengine.com/u/Sanglard_TV)\
**Post date:** [June 24, 2024, 7:14pm UTC](https://forums.unrealengine.com/t/copy-static-mehs-sockets/346586/18 "2024-06-24T19:14:03Z")

</div>

Your plugin is a game changer. Thank you so much for sharing it! This will save me so much time.

---

<div class="post-metadata">

**Author:** ![Josemcasasp](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Josemcasasp](https://forums.unrealengine.com/u/Josemcasasp)\
**Post date:** [October 24, 2024, 8:34pm UTC](https://forums.unrealengine.com/t/copy-static-mehs-sockets/346586/19 "2024-10-24T20:34:25Z")

</div>

Is this approach also possible with skeletal meshes? im having some troubles to get it ☹

---

<div class="post-metadata">

**Author:** ![Ares9323](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ares9323/32/1194521_2.png) [@Ares9323](https://forums.unrealengine.com/u/Ares9323)\
**Post date:** [October 28, 2024, 2:24pm UTC](https://forums.unrealengine.com/t/copy-static-mehs-sockets/346586/20 "2024-10-28T14:24:44Z")

</div>

This tool doesn’t work with skeletal meshes since they are completely different from static meshes, I’ll probably do something about this in the future because the socket creation for skeletal meshes is kinda bad, but right now I’m too busy, sorry!

[Next page](https://forums.unrealengine.com/t/copy-static-mehs-sockets/346586.md?page=2)
