Linear scale with spline mesh

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:

The setup of the construct script just in case:

Any help?
Thanks

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!

3 Likes

@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”?


In fact, there are other nodes I can´t find in the search. Could you help me to build that node tree?

I figured out! It´s a variable! :wink:

@anonymous_user_351ac66c , how can I create this node:
image
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: