# Transfer Spline Points Between Blueprints?

**URL:** <https://forums.unrealengine.com/t/transfer-spline-points-between-blueprints/767881>\
**Category:** Blueprint\
**Tags:** unreal-engine, Spline, question, Blueprint\
**Created:** [February 10, 2023, 8:36am UTC](https://forums.unrealengine.com/t/transfer-spline-points-between-blueprints/767881 "2023-02-10T08:36:31Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ganzg](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ganzg/32/579912_2.png) [@ganzg](https://forums.unrealengine.com/u/ganzg)\
**Post date:** [February 10, 2023, 8:36am UTC](https://forums.unrealengine.com/t/transfer-spline-points-between-blueprints/767881/1 "2023-02-10T08:36:31Z")

</div>

I have existing splines created using a blueprint and I’d like to use the spline point data in a new blueprint. Anyone have any advice?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [February 10, 2023, 8:51am UTC](https://forums.unrealengine.com/t/transfer-spline-points-between-blueprints/767881/2 "2023-02-10T08:51:37Z")

</div>

ALT-drag?

You can also write a BP to copy the point data from the other.

---

<div class="post-metadata">

**Author:** ![ganzg](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ganzg/32/579912_2.png) [@ganzg](https://forums.unrealengine.com/u/ganzg)\
**Post date:** [February 10, 2023, 11:00am UTC](https://forums.unrealengine.com/t/transfer-spline-points-between-blueprints/767881/3 "2023-02-10T11:00:12Z")

</div>

> [@ClockworkOcean](#):
>
> You can also write a BP to copy the point data from the other.

This is what I’d like to know how to do.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [February 10, 2023, 11:10am UTC](https://forums.unrealengine.com/t/transfer-spline-points-between-blueprints/767881/4 "2023-02-10T11:10:42Z")

</div>

If the original BP is ‘SplineBP’, then in a new BP, we can use a reference and copy the data out

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/d/6/ad6dca280cd7a1fa2eeb8b6d26eedb583848269c.png)

This only does relative location, but of course you can copy the whole transform.

But why bother? 🙂

---

<div class="post-metadata">

**Author:** ![ganzg](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ganzg/32/579912_2.png) [@ganzg](https://forums.unrealengine.com/u/ganzg)\
**Post date:** [February 10, 2023, 12:23pm UTC](https://forums.unrealengine.com/t/transfer-spline-points-between-blueprints/767881/5 "2023-02-10T12:23:44Z")

</div>

Any idea why mine isn’t working?

 ![splineCopy1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/7/5/8758a138915b237be9bc75bbbf42fbbd432d7d35.jpeg)

![copySpline1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/d/6/ad68d4727591b2fdc5e7ef8c4a51e2570cc5c98d.gif)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [February 10, 2023, 12:39pm UTC](https://forums.unrealengine.com/t/transfer-spline-points-between-blueprints/767881/6 "2023-02-10T12:39:09Z")

</div>

Updated code ( tested this time ).

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/3/a/53a6ecba270f7323ebd96636bb44e3cd6f164ee3.png)

![copy spline](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/f/3/1f31dadff59ffb68f3fc4b3281853cf8ea1f8045.gif)

---

<div class="post-metadata">

**Author:** ![ganzg](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ganzg/32/579912_2.png) [@ganzg](https://forums.unrealengine.com/u/ganzg)\
**Post date:** [February 10, 2023, 1:24pm UTC](https://forums.unrealengine.com/t/transfer-spline-points-between-blueprints/767881/7 "2023-02-10T13:24:53Z")

</div>

That works! Any way to store the spline points so that I can delete the originals?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [February 10, 2023, 1:30pm UTC](https://forums.unrealengine.com/t/transfer-spline-points-between-blueprints/767881/8 "2023-02-10T13:30:58Z")

</div>

Store them for how long?

What originals, the ones in the other BP?

Saving the level will store everything, of course.

---

<div class="post-metadata">

**Author:** ![ganzg](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ganzg/32/579912_2.png) [@ganzg](https://forums.unrealengine.com/u/ganzg)\
**Post date:** [February 10, 2023, 2:43pm UTC](https://forums.unrealengine.com/t/transfer-spline-points-between-blueprints/767881/9 "2023-02-10T14:43:30Z")

</div>

Actually as long as I keep it in a function (instead of on the construction script) it retains the spline points. Thanks for the help @ClockworkOcean ! Here’s my final blueprint:

 ![Copy Spline Points from Blueprint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/2/c/22ca1cc47f588ad3e8a34c1e79c3ee04e4876a90.png)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [February 10, 2023, 2:57pm UTC](https://forums.unrealengine.com/t/transfer-spline-points-between-blueprints/767881/10 "2023-02-10T14:57:45Z")

</div>

Lovely 🙂

---

<div class="post-metadata">

**Author:** ![TheWolf](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/thewolf/32/1036665_2.png) [@TheWolf](https://forums.unrealengine.com/u/TheWolf)\
**Post date:** [December 14, 2023, 6:58am UTC](https://forums.unrealengine.com/t/transfer-spline-points-between-blueprints/767881/11 "2023-12-14T06:58:43Z")

</div>

I’ve copied your code and am running it in a Fn on the CS but I could only get the changes to save if I set ‘Override Construction Script’ = ON on the details panel for the spline component in level. If I ever uncheck this, it reverts back to default.

---

<div class="post-metadata">

**Author:** ![xixi827](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xixi827](https://forums.unrealengine.com/u/xixi827)\
**Post date:** [May 22, 2024, 2:10am UTC](https://forums.unrealengine.com/t/transfer-spline-points-between-blueprints/767881/12 "2024-05-22T02:10:19Z")

</div>

Hello where to put these codes? create a new BP or level blueprint?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [May 22, 2024, 7:10am UTC](https://forums.unrealengine.com/t/transfer-spline-points-between-blueprints/767881/13 "2024-05-22T07:10:53Z")

</div>

New BP. It’s the one with the spline in 🙂

---

<div class="post-metadata">

**Author:** ![xixi827](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xixi827](https://forums.unrealengine.com/u/xixi827)\
**Post date:** [May 22, 2024, 8:27am UTC](https://forums.unrealengine.com/t/transfer-spline-points-between-blueprints/767881/14 "2024-05-22T08:27:25Z")

</div>

i also tried it , it is not permanent, when i edit or change something, it reverts back to original shape. is there any way to make these points identical, i mean like normal spline actor.

---

<div class="post-metadata">

**Author:** ![isnzzi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@isnzzi](https://forums.unrealengine.com/u/isnzzi)\
**Post date:** [October 8, 2024, 12:46pm UTC](https://forums.unrealengine.com/t/transfer-spline-points-between-blueprints/767881/15 "2024-10-08T12:46:47Z")

</div>

I know it is already solved, but in case somebody needs it I created a python script to copy the spline points. you just have to specify the names and run it inside the level

```auto
import unreal

editor_actor_subsystem = unreal.get_editor_subsystem(unreal.EditorActorSubsystem)

source_bp_actor = None
destination_bp_actor = None

all_actors = editor_actor_subsystem.get_all_level_actors()

for actor in all_actors:
    if actor.get_actor_label() == "BP_Spline_Source_Name":
        source_bp_actor = actor

    if actor.get_actor_label() == "BP_Spline_Destination_Name":
        destination_bp_actor = actor

source_spline = None
destination_spline = None

source_components = source_bp_actor.get_components_by_class(unreal.SplineComponent)
if source_components:
    source_spline = source_components[0]

destination_components = destination_bp_actor.get_components_by_class(unreal.SplineComponent)
if destination_components:
    destination_spline = destination_components[0]

# Clear existing points in the destination spline
destination_spline.clear_spline_points()

# Iterate over the points in the source spline and add them to the destination spline
num_points = source_spline.get_number_of_spline_points()
for i in range(num_points):
    # Get the point's position, tangent, rotation, scale and type
    location = source_spline.get_location_at_spline_point(i, unreal.SplineCoordinateSpace.LOCAL)
    tangent = source_spline.get_arrive_tangent_at_spline_point(i, unreal.SplineCoordinateSpace.LOCAL)
    rotation = source_spline.get_rotation_at_spline_point(i, unreal.SplineCoordinateSpace.LOCAL)
    scale = source_spline.get_scale_at_spline_point(i)
    point_type = source_spline.get_spline_point_type(i)
    
    # Add a spline point at the location and immediately update the spline
    destination_spline.add_spline_point_at_index(location, i, unreal.SplineCoordinateSpace.LOCAL, update_spline=True)
    destination_spline.set_tangent_at_spline_point(i, tangent, unreal.SplineCoordinateSpace.LOCAL)
    destination_spline.set_rotation_at_spline_point(i, rotation, unreal.SplineCoordinateSpace.LOCAL)
    destination_spline.set_scale_at_spline_point(i, scale)
    destination_spline.set_spline_point_type(i, point_type, update_spline=True)

unreal.EditorUtilityLibrary().set_actor_property(destination_bp_actor, "Modify", True)
destination_spline.update_spline()

```

If the points disappear when you move it just select all of them and save the level.

---

<div class="post-metadata">

**Author:** ![aliss-hntb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@aliss-hntb](https://forums.unrealengine.com/u/aliss-hntb)\
**Post date:** [October 10, 2024, 6:13pm UTC](https://forums.unrealengine.com/t/transfer-spline-points-between-blueprints/767881/16 "2024-10-10T18:13:50Z")

</div>

Hey this Python script is exactly what I’m looking for, but when I run it I get an error:

```auto
AttributeError: 'EditorUtilityLibrary' object has no attribute 'set_actor_property'

```

Any idea why that would be?

EDIT: Nevermind, it seems like it worked despite the error. Awesome script!

---

<div class="post-metadata">

**Author:** ![Gunslinger519](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gunslinger519](https://forums.unrealengine.com/u/Gunslinger519)\
**Post date:** [January 16, 2025, 2:03am UTC](https://forums.unrealengine.com/t/transfer-spline-points-between-blueprints/767881/17 "2025-01-16T02:03:00Z")

</div>

This is awesome. However it doesn’t seem to be copying the tangents. Any idea why that would be? Thanks!

---

<div class="post-metadata">

**Author:** ![DarioGangi](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dariogangi/32/1215012_2.png) [@DarioGangi](https://forums.unrealengine.com/u/DarioGangi)\
**Post date:** [February 18, 2025, 11:30am UTC](https://forums.unrealengine.com/t/transfer-spline-points-between-blueprints/767881/18 "2025-02-18T11:30:29Z")

</div>

Why do you set the spline tangents apart?  
This is my solution (more compact):

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/a/7/4a7c2e0936074ecfb71ad24842e35c00775af9e3.png)

---

<div class="post-metadata">

**Author:** ![Math\_Ho](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Math\_Ho](https://forums.unrealengine.com/u/Math_Ho)\
**Post date:** [August 15, 2025, 1:13pm UTC](https://forums.unrealengine.com/t/transfer-spline-points-between-blueprints/767881/19 "2025-08-15T13:13:22Z")

</div>

I came across this last night, and it still works beautifully. I love finding other unicorns out there who have found solutions to the same conundrums that I currently have. Thank you!

---

<div class="post-metadata">

**Author:** ![MrHardo1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MrHardo1](https://forums.unrealengine.com/u/MrHardo1)\
**Post date:** [September 9, 2025, 6:56am UTC](https://forums.unrealengine.com/t/transfer-spline-points-between-blueprints/767881/20 "2025-09-09T06:56:58Z")

</div>

I know this has been answered repeatedly, with multiple approaches… But for folk who are real lazy, I threw together an editor utility widget for copying points between splines. There was another one floating around in a different thread but it contained multiple assets & errors, so here’s one for 5.6 that worked well for me:

 ![Capture](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/6/d/d6d5faa2e4d468d02790262e7793ade1cafbeeab.png)

EDIT: Link now contains asset for versions 5.5+  
[Copy splines widget](https://mega.nz/file/oswn3QDa#XYNkZkydFyc7NPxU6FL4R4JFfs6CSebI1wbYQcz9jg8)

[Next page](https://forums.unrealengine.com/t/transfer-spline-points-between-blueprints/767881.md?page=2)
