Random objects distribution on a line with distortion

   2786   2   0
User Avatar
Member
46 posts
Joined: Dec. 2017
Offline
Hi everyone
I'm looking for the best way to distribute a random selection of objects along a line, making them bend on a curve if necessary, and with an adapted positioning that would make no gaps in case the objects scattered have different dimensions (similar to what Railclone for 3dsmax does!), but i can't find any example i could start with.
Edited by Flatland - July 24, 2020 06:58:20
User Avatar
Member
504 posts
Joined: July 2005
Offline
Hi,

You can use the new path deformer for example. Copy the geometry to a set of points using a random id for the points, which

represents the different geometries. Using pack geometry allows you to use each piece as a single primitive. The bounding box

functions gives you the lengths of each piece, which can be accumulated.

Here is an example


@edit: new path deform was version 18.0.499
Edited by Aizatulin - July 25, 2020 02:17:01

Attachments:
curve_random_copy.hipnc (404.2 KB)

User Avatar
Member
46 posts
Joined: Dec. 2017
Offline
Oh i like this!
This is well done, you gave me something to study and learn from.

Thanks a lot!
  • Quick Links