# Rendering Splines

**URL:** <https://forums.unrealengine.com/t/rendering-splines/2323811>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [February 9, 2025, 4:23am UTC](https://forums.unrealengine.com/t/rendering-splines/2323811 "2025-02-09T04:23:58Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![ataribox007](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ataribox007](https://forums.unrealengine.com/u/ataribox007)\
**Post date:** [February 9, 2025, 4:23am UTC](https://forums.unrealengine.com/t/rendering-splines/2323811/1 "2025-02-09T04:23:58Z")

</div>

added a mesh to spline, but would like to add a blueprint that includes mesh and data instead of just a mesh… is this possible?

how do you change the material of a spline parts once it’s generated? can’t just drag material onto spline parts

for rendering a pcg spline. is there a way to ‘print’ a spline, so that each individual piece can be edited? i’d like to add a different sound to each block when it get’s hit? (promote to variable sound per block) when i say print, i mean build the spline, and then split the spline into each individual object within … (remove the spline but keep the procedural objects, or preferable blueprints)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [February 9, 2025, 10:20am UTC](https://forums.unrealengine.com/t/rendering-splines/2323811/2 "2025-02-09T10:20:25Z")

</div>

> [@ataribox007](#):
>
> add a blueprint that includes mesh and data instead of just a mesh… is this possible?

Extend the SMC:

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

> [@ataribox007](#):
>
> how do you change the material of a spline parts once it’s generated?

Use the reference to the generated spline mesh component:

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

> [@ataribox007](#):
>
> i’d like to add a different sound to each block when it get’s hit?

Bind whichever event you want or add a custom dispatcher or even do it inside the SMC if you override it: (this last bit is somewhat unintuitive and needs to rely on the components’ Begin Play):

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/1/0/1106b23d21b520e57f1e5d40ad133bbc3ecda743.png)

> [@ataribox007](#):
>
> i mean build the spline, and then split the spline into each individual object within … (remove the spline but keep the procedural objects, or preferable blueprints)

When you generate spline mesh components, they are in no way associated with the spline used to generate them, you can reuse the spline to generate more meshes. Removing the spline does not affect the meshes in any way. However, if you wanted to update the meshes again run-time, you may need the spline again. Depending on what you’re up to, it may not be a bad idea to keep it around.

---

<div class="post-metadata">

**Author:** ![ataribox007](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ataribox007](https://forums.unrealengine.com/u/ataribox007)\
**Post date:** [February 10, 2025, 5:39am UTC](https://forums.unrealengine.com/t/rendering-splines/2323811/3 "2025-02-10T05:39:46Z")

</div>

thank you.

in FL studio, when doing midi generation, there is an option to Burn to MIDI. instead of being code, it burns the midi to the piano roll.

is there a similar option in spline creation of PCG… to Burn the Actors to the Outline within a folder (from here you could edit the actors individually?

---

<div class="post-metadata">

**Author:** ![ataribox007](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ataribox007](https://forums.unrealengine.com/u/ataribox007)\
**Post date:** [February 10, 2025, 6:28am UTC](https://forums.unrealengine.com/t/rendering-splines/2323811/4 "2025-02-10T06:28:52Z")

</div>

for the spline mesh component (i changed this), how do I then call a Blueprint?

 ![call blueprint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/7/4/674a76b993e6d130c9f2be6f612747911893cdd8.png)

for this one it has a set static mesh. but i’d like to do a set blueprint? (how do you do that?)

if i can call the blue print, this should have the sound option still attached

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [February 10, 2025, 9:19am UTC](https://forums.unrealengine.com/t/rendering-splines/2323811/5 "2025-02-10T09:19:10Z")

</div>

> [@ataribox007](#):
>
> but i’d like to do a set blueprint? (how do you do that?)

I don’t know what you mean by this. But if you want a spline mesh component that has a graph, its own variables, functions, and can detects hits, overlaps or play sounds, I’ve answerd it above.

If it’s something else, you may need to elaborate.

> [@ataribox007](#):
>
> Burn the Actors to the Outline within a folder

I do not know what this means.

---

<div class="post-metadata">

**Author:** ![ataribox007](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ataribox007](https://forums.unrealengine.com/u/ataribox007)\
**Post date:** [February 10, 2025, 10:49pm UTC](https://forums.unrealengine.com/t/rendering-splines/2323811/6 "2025-02-10T22:49:26Z")

</div>

so when creating a block. i followed a tutorial that creates the block as a blueprint. this way it has event info on contact.

what i’d like to do is retain that event info, and use it in a spline.

---

<div class="post-metadata">

**Author:** ![ataribox007](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ataribox007](https://forums.unrealengine.com/u/ataribox007)\
**Post date:** [February 10, 2025, 10:51pm UTC](https://forums.unrealengine.com/t/rendering-splines/2323811/7 "2025-02-10T22:51:50Z")

</div>

![spline test 1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/0/7/1072d5ce3db4fcf7a81751387387cd4f18dba3ce.png)  
this isn’t working. i just tried changing to add spline component. what i’m tryin to do is call the blueprint as the mesh or object.

not sure if this is possible, or how to call item within the blueprint correctly? (hoping it retains the collision events I already coded to it)

the code i’m working with, allows you to add multiple items.  
just not sure how to wire it with BP\_Blue\_Block.

(technically not pcg, just for a spline)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [February 11, 2025, 6:42am UTC](https://forums.unrealengine.com/t/rendering-splines/2323811/8 "2025-02-11T06:42:19Z")

</div>

What you’re doing there makes little sense from the engine’s point of view. Those casts will always fail. A spline mesh component is not an actor, a spline mesh compoment cannot utilise a static mesh component.

If you want each spline segment to have a unique mesh assigned to it, set mesh directly from the SMC. And if you want those SMCs to run script, per spline segment, please refer to my original post.

* * *

I sense that you’ve created some actors with static meshes and now expect to use them for deforming spline meshes. If that’s the case, it will not work. See my first post for how to taclke it.

---

<div class="post-metadata">

**Author:** ![ataribox007](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ataribox007](https://forums.unrealengine.com/u/ataribox007)\
**Post date:** [February 12, 2025, 1:27am UTC](https://forums.unrealengine.com/t/rendering-splines/2323811/9 "2025-02-12T01:27:46Z")

</div>

that’s what I’m asking, I don’t know how to connect the blueprint the the spline this way? (still relatively new to blueprints)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [February 12, 2025, 7:40am UTC](https://forums.unrealengine.com/t/rendering-splines/2323811/10 "2025-02-12T07:40:32Z")

</div>

Did you try what was was suggested? Did you create a custom spline mesh component as suggested in my original answer?

If so, could you post the scrupt showing how you’re adding them and uave them follow the spline.

---

<div class="post-metadata">

**Author:** ![ataribox007](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ataribox007](https://forums.unrealengine.com/u/ataribox007)\
**Post date:** [February 13, 2025, 4:47am UTC](https://forums.unrealengine.com/t/rendering-splines/2323811/11 "2025-02-13T04:47:23Z")

</div>

not really sure how to do that, as stated. new to blueprint programming.  
i tried a couple things.

i have a blueprint called ‘Block’ , which includes mesh and collision effects. not sure how to pull this up in a spline… as stated (sorry, bigtime noob to unreal engine and blueprint, first month in roughly, just watching youtube videos to learn. ) if you could suggest some good free learning tutorials, i’d be interested in checking them out.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [February 13, 2025, 5:09am UTC](https://forums.unrealengine.com/t/rendering-splines/2323811/12 "2025-02-13T05:09:29Z")

</div>

> [@ataribox007](#):
>
> i have a blueprint called ‘Block’ , which includes mesh and collision effects.

Do you want this mesh to be shaped like the spline. Does it need to be deformed and follow the spline curvature, bend and twist? Or the goal is to simply dot those blocky blocks along a spline. If in doubt, consider attaching a reference image.

---

<div class="post-metadata">

**Author:** ![ataribox007](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ataribox007](https://forums.unrealengine.com/u/ataribox007)\
**Post date:** [February 14, 2025, 4:44am UTC](https://forums.unrealengine.com/t/rendering-splines/2323811/13 "2025-02-14T04:44:11Z")

</div>

so i figured out how to turn a Mesh along the spline, or offset it (kinda like a road, or bridge)  
play around with location, and randomly turn them different, or other.

but haven’t figured out how to include a Blueprint as part of the spline?  
would like my blocks to have events attached, but don’t want to have to recode each block within the spline

if you could show me how to attach a Blueprint at Distance X along a spline, that would be big help, and think I could figure out the rest from there.  
when i say blueprint, i within containing a box, and mesh for collision, and basic collision events.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [February 14, 2025, 8:05am UTC](https://forums.unrealengine.com/t/rendering-splines/2323811/14 "2025-02-14T08:05:58Z")

</div>

> [@Actors on spline with irregular spacing](https://forums.unrealengine.com/t/actors-on-spline-with-irregular-spacing/677071/4):
>
> Play with distribution using spline duration instead: [image] The results without: And with Constant Velocity: Perhaps that’s enough.

> [@Curve a series of objects](https://forums.unrealengine.com/t/curve-a-series-of-objects/471428/10):
>
> Ah, I think I’m getting a better picture of this. I run this event in the Construction Script: Do note how the components are now added to a Static Mesh Component array so we can keep track of them. This allows me to preview the result in the world and manipulate the spline any way I need: [[Image from Gyazo]](https://gyazo.com/9c3d8a05cc689cd21f87fdf830c5f26f) The arrows are not aware they’re attached to a spline, they will not follow it. The Construction Scripts actually executes every frame and recreates everything from scr…

> **[Populating Meshes Along a Spline with Blueprints | Tutorial](https://dev.epicgames.com/community/learning/tutorials/39/populating-meshes-along-a-spline-with-blueprints)**
>
> In this tutorial from an Unreal Engine Tips and Tricks video, we'll describe methods for quickly populating a lot of meshes along a spline in a performa...
