# Linear scale with spline mesh

**URL:** <https://forums.unrealengine.com/t/linear-scale-with-spline-mesh/398549>\
**Category:** World Creation\
**Tags:** unreal-engine, scale, Spline, procedural, question\
**Created:** [June 9, 2017, 9:00pm UTC](https://forums.unrealengine.com/t/linear-scale-with-spline-mesh/398549 "2017-06-09T21:00:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bonatti-San](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bonatti-San](https://forums.unrealengine.com/u/Bonatti-San)\
**Post date:** [June 9, 2017, 9:00pm UTC](https://forums.unrealengine.com/t/linear-scale-with-spline-mesh/398549/1 "2017-06-09T21:00:42Z")

</div>

Hello

I’m trying to make a procedural spline mesh to look like a “tentacle”, with a linear scale transition from 1x1 to 0x0.

The spline mesh generator is working fine, but I’m having trouble to make a linear scale transition between first spline point to the last one.

I’m trying to use set end/start scale, but I get this result:

 ![200261-capturar.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/d/b/ddbafd8179226432e545457b774f62a3b67c26d6.png)

The setup of the construct script just in case:

 ![200262-capturar2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/5/4/4540778e092687515e0dbf5551895f28803cf937.png)

Any help?  
Thanks

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_351ac66c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_351ac66c](https://forums.unrealengine.com/u/anonymous_user_351ac66c)\
**Post date:** [August 22, 2017, 9:03pm UTC](https://forums.unrealengine.com/t/linear-scale-with-spline-mesh/398549/2 "2017-08-22T21:03:03Z")

</div>

Not sure if you’ve found an answer to this question yet, but I’ve been playing around with splines and figured I work this one out.

There are two nodes you need to add at the end of your blueprint. They are “Set Start Scale” and “Set End Scale”. Each of these takes a target (your spline mesh component) and a Vector 2D for the X and Y values.

In my attached example, I’ve created a variable called “Tentacle Scale” with a default value of 1. Then, I take 1 and divide it by the number of spline points. This gives me the amount the spline mesh needs to scale down in each iteration of the loop (we’ll call this the “Down Value”).

Then, in the loop where the spline meshes are added, I use the Tentacle Scale variable to set the start scale for the spline mesh. Then, I subtract the Down Value from the Tentacle Scale and use that to set the end scale.

As the loop progresses, the start scale for each section is the same as the end scale for the previous section, so the tentacle appears seamless.

Hope this helps!

 ![210815-splineexample.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/2/d/42da7e8aafa3740e2459647047967569fb062451.jpeg)

 ![210816-blueprintsetup.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/9/a/e9a0221b3d49fd669913ce1a9400c91eaab8bcb1.jpeg)

---

<div class="post-metadata">

**Author:** ![Leandro\_O](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/leandro_o/32/467689_2.png) [@Leandro\_O](https://forums.unrealengine.com/u/Leandro_O)\
**Post date:** [March 31, 2023, 12:17am UTC](https://forums.unrealengine.com/t/linear-scale-with-spline-mesh/398549/3 "2023-03-31T00:17:26Z")

</div>

@anonymous_user_351ac66c you show exactly what I need! A scale control. I´m a bit noob about blueprints. So, could you tell me where I found the node named “SET”?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/4/f/14f22f3530c7b27973478e64582fb6751b4bf6eb.jpeg)  
In fact, there are other nodes I can´t find in the search. Could you help me to build that node tree?

---

<div class="post-metadata">

**Author:** ![Leandro\_O](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/leandro_o/32/467689_2.png) [@Leandro\_O](https://forums.unrealengine.com/u/Leandro_O)\
**Post date:** [March 31, 2023, 2:28pm UTC](https://forums.unrealengine.com/t/linear-scale-with-spline-mesh/398549/4 "2023-03-31T14:28:05Z")

</div>

I figured out! It´s a variable! 😉

---

<div class="post-metadata">

**Author:** ![Leandro\_O](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/leandro_o/32/467689_2.png) [@Leandro\_O](https://forums.unrealengine.com/u/Leandro_O)\
**Post date:** [March 31, 2023, 2:33pm UTC](https://forums.unrealengine.com/t/linear-scale-with-spline-mesh/398549/5 "2023-03-31T14:33:31Z")

</div>

@anonymous_user_351ac66c , how can I create this node:  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/8/0/68073e8b26c6ac4dac3c1307fca1037f3108fdda.png)  
It seems to be a conversion node. The documentation says that it should be created automatically when connecting two different types of ports (Autocast). But it´s not been created when I connect:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/0/2/c02c46dcac0024d73140bfb51b6a911ab0fdacfe.png)
