# Why does the spline component reset after being created in blutility and moved in editor?

**URL:** <https://forums.unrealengine.com/t/why-does-the-spline-component-reset-after-being-created-in-blutility-and-moved-in-editor/433482>\
**Category:** Blueprint\
**Tags:** splinecomponent, Blueprint-Utilities, Blutilities, reset-to-default, unreal-engine, question\
**Created:** [September 9, 2018, 5:46pm UTC](https://forums.unrealengine.com/t/why-does-the-spline-component-reset-after-being-created-in-blutility-and-moved-in-editor/433482 "2018-09-09T17:46:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![xadrin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xadrin](https://forums.unrealengine.com/u/xadrin)\
**Post date:** [September 9, 2018, 5:46pm UTC](https://forums.unrealengine.com/t/why-does-the-spline-component-reset-after-being-created-in-blutility-and-moved-in-editor/433482/1 "2018-09-09T17:46:30Z")

</div>

Hi there,

I wrote a blutility method which instantiates a blueprint class _Something_ containing a spline component for every selected object with a spline component attached. So it’s basically a converter which converts splines into other spline objects.  
_Something_ doesn’t have any construction script code and the event graph is also empty. It’s only made of a spline component at the root.

 ![253262-something.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/4/f/34f58e3d0ea897508481c829bf205c317bd557a4.png)

Here’s the conversion code. You can also [download it][5] to test it yourselves. Should work by just copy-and-pasting the text into a blutility function.

 ![253202-splineconversion.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/2/6/82688ee5ce0846ddd07c0e92c201a52392a5965e.png)

It seemed to work well. When I convert a spline and select the new one, it matches its original.

 ![253263-before.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/0/d/30db6f6c6de7c68b4744fc2317d267903a198fd7.png)

If I move it however, the new spline resets to the default 2 node spline.

 ![253265-after.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/f/c/3fc8144a92feda194c184a44e4d98b67808d6d04.png)

I have absolutely no clue why this is happening.  
First I was guessing because of the `UpdateSpline` option of the `AddPoint` method. But changing that didn’t make a difference. Another guess would be the actor lifecycle but I have no idea what can go wrong there.

Thanks in advance,

Cheers

---

<div class="post-metadata">

**Author:** ![UE\_FlavienP](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ue_flavienp/32/1194546_2.png) [@UE\_FlavienP](https://forums.unrealengine.com/u/UE_FlavienP)\
**Post date:** [September 11, 2018, 12:01pm UTC](https://forums.unrealengine.com/t/why-does-the-spline-component-reset-after-being-created-in-blutility-and-moved-in-editor/433482/2 "2018-09-11T12:01:16Z")

</div>

Hello xadrin,

have you tried ticking the “Override Construction Script”, in the _Spline_ tab of _Spline Component_ of your _Something_ class?

Cheers.

---

<div class="post-metadata">

**Author:** ![xadrin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xadrin](https://forums.unrealengine.com/u/xadrin)\
**Post date:** [September 12, 2018, 5:34am UTC](https://forums.unrealengine.com/t/why-does-the-spline-component-reset-after-being-created-in-blutility-and-moved-in-editor/433482/3 "2018-09-12T05:34:59Z")

</div>

Hi UE\_FlavienP,

Yup, that was it.  
Thanks very much.

Cheers,  
Stefan
