To speed up our process of creating control rig assets we are working on a Python script to automate this process. We have an issue when we try to attach a static mesh component to a socket of a skeletal mesh component.
The provided python script will create a Blueprint asset with a skeletal mesh component and a static mesh component. The static mesh component is a child of the skeletal mesh component.
The return value of the attach_to_component function is indicating a successful attachment and the get_attach_socket_name function is printing the correct socket name, but the component is not attached.
Steps to Reproduce
In a default scene run the provided python script (epic_create_bp.py) to create the Blueprint.
Tools > Execute Python Script > ...epic_create_bp.py
It will create a Blueprint with a skeletal mesh component and a static mesh component. It is using default engine content as assets.
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-367922 in the post.
| 0 |
| Component | UE - Framework - Components |
|---|---|
| Affects Versions | 5.7 |
| Created | Feb 26, 2026 |
|---|---|
| Updated | Feb 26, 2026 |