bbox based + rand objects copy along line/curve no overlap

   3660   5   1
User Avatar
Member
16 posts
Joined: Jan. 2016
Offline
I want to random copy a few existing models along a line/curve.
The line/curve has to be a fixed distance/length, but the models/bbox size can change.
while copying objects…..I want to use model's bounding box, so I have control of the space between instance 0 and instance 1, and they don't overlap
I use copy-to-point node, but I know think it will work.
for-each-loop, may work, but I not sure how to feed the bbox value back to the “resample” node???? sorry I don't know if this make any sense….
I made a diagram here, hope it explained what Im trying to do…

Thank you very much

Attachments:
Screenshot at 2020-09-01 11-36-27.png (585.8 KB)
Project1.hip (144.5 KB)

User Avatar
Member
555 posts
Joined: Feb. 2017
Offline
try adding the labs align and distribute after the fact, obviously spacing 0….(or whatever)
User Avatar
Member
502 posts
Joined: July 2005
Offline
Hi,

here is an example with a random selection of objects aligned to a curve using the new path deformer.

Attachments:
curve_random_copyA.hipnc (420.5 KB)

User Avatar
Member
16 posts
Joined: Jan. 2016
Offline
I am speechless and thank you both “vusta” & “Aizatulin”
Thanks vusta for letting me know about “align and distribute” fro lab, it is definitely useful.
Aizatulin, omg, what you have in the sample is blow my mind. I was too naive. Thanks for spending time and show me how it can be done, and I have a lot need to digest now, lots of good information and tricks. Amazing, thank you so much!
User Avatar
Member
1 posts
Joined: May 2025
Offline
This is amazing Information! I have just started learning Houdini 2 Weeks ago and I am so grateful for this Community! Thank you Berengar for bringing up the exact Issue that I am now facing and thank you Vusta and Aizatulin for providing Information! It helps out a lot!
User Avatar
Member
275 posts
Joined: Feb. 2016
Offline
There is now a Chain [www.sidefx.com] sop that can do this and more
Edited by AslakKS - June 9, 2025 17:10:32
  • Quick Links