Get Random Point Inside Closed Spline

Is it possible to get a random point within a closed spline in blueprint?

image


Or do you mean a coordinate in the area described by the closed spline?

Yes, some point inside the closed loop. Not on the spline.

There is several node that could get a point in a spline where close to a given world location.
You can check out “find input key closest to world location”,which,takes in a given world location and returns you a number, then you could use that number to get distance along spline or world location, etc… I only used once,don’t remember the details,you could try those build in nodes one by one if necessary

This will also give me a point on the spline and that is not what I want to do.

Example: I want a random point in the green area.

Hello @TypicaUnrealUser ,

Procedural Crop Field - UE4 Tutorials #330 (youtube.com)

That video by CodeLikeMe do somekind of similar thing with what you want. He spawn some plants inside the spline (In the green area of your picture). Maybe you could use this as a starting point to get a random point.