Distribute objects along lines

Yes! As well!

But I still don’t know why I have this translation from Add component to Add Static Mesh Component. When inserting the BP into the scene I do not have any parameters to change at all.

You have to make them editable:

image

If you want to follow the terrain, then you do need a spline.

Thanks! The multiplying of the objects works now. How I can make an input to declare which spline I want to scatter on and how to scatter it on the line?

The code you have now, will only do along the X axis. If you want to go along Y also, you need to add something very similar

1 Like

I want to go along any axis. I mean in reality, it will be a perpendicular angle to the spline. And again, how to make it follow declared splines?

Like I say, if you want to follow splines, you need to complete the tutorial you were talking about earlier. :slight_smile:

I went through it 3 times. And I still see only spline and no geometry.

Did you set the mesh?

( 3:25 )

I did before. But I went again through the script and realised that in For Loop every single time I added the node to the First Index instead of Last :D.

So it works now. But how I can make the option to choose specific splines in UE instead of declaring one inside the BP?

You don’t edit the spline in the blueprint, you edit it in the level. Then you can pose it any way you want.

Ok, I have added the possibility to use a custom spline. However, now I have discovered that there is no easy way to import CAD lines to UE -.-.

No, probably not… :wink:

Might be possible to export CAD to .SVG and from SVG back to blender or UE in a multi step process. SVG is just a set of vectors which are human readable, so depending on how much data it is you could just recreate the splines in UE by typing / copying coordinates. Blender can import svg and simplify data.

Eh, great, so the whole thing about switching the company from 3ds Max to UE5 went to the trash because we are working mostly with GIS/CAD data…

Not sure what you are trying to do but 3DS Max is a software package aimed at doing different things than UE5. Comparing them is like comparing apples to potatoes. You need an API between 2 software packages like a plugin, or you need to find an export format the other can already import.

In this case create a solar farm from CAD data from the client and the government GIS data (DTM/DSM/Point Cloud, etc). If I can not import multiple CAD 2D lines to UE, then UE can not be used with the majority of the projects.

It is not impossible to do, but you might need to set up a plugin. CAD can export the lines to SVG, this is what you should do. The SVG format can be turned into a set of coordinates to be stored in a UE datatable asset, or it can be directly converted to a spline. There are more people with your question how to do this and several solutions are available.

Import splines

Spline Importer Plugin in Code Plugins - UE Marketplace

Export spline from Blender to Unreal Engine | by Alex S. | Medium

The spline importer plugin which I send a link of works with FBX files. This is useful if you have to work with 3D software like blender or Max to get things running as they can store the data from CAD into an FBX format. * It does .svg as well. Check out these links to see if something fits your requirements.

1 Like