Copy to line segments

   1483   3   1
User Avatar
Member
2 posts
Joined: Feb. 2018
Offline
Hello, I'm new to Houdini and had trouble figuring out the correct way to do this. I created an attribute wrangle that takes a line and drapes it in an arc. I was wondering how I could copy my draped line to each line segment of the input_crv? I attached a scene to look at. Thanks!



Attachment Not Found

Attachments:
hanging_cable.hiplc (72.7 KB)
hanging_cable.jpg (191.7 KB)

User Avatar
Member
1743 posts
Joined: March 2012
Offline
Try the Sweep SOP. It copies geometry to each point in a curve, with a transform based on the curve. It may require some fiddling to override the transform (possibly even with Nor upattributes on the points) if the default is not the transform you want.
Writing code for fun and profit since... 2005? Wow, I'm getting old.
https://www.youtube.com/channel/UC_HFmdvpe9U2G3OMNViKMEQ [www.youtube.com]
User Avatar
Member
1265 posts
Joined: March 2014
Offline
or have twice as many points on the curve. Use a Group by Range an select only every second point. Use this group to create your curve.

Like this….
Edited by Werner Ziemerink - Feb. 28, 2018 11:12:05

Attachments:
Group_by_Range.hip (72.2 KB)

Werner Ziemerink
Head of 3D
www.luma.co.za
User Avatar
Member
555 posts
Joined: Feb. 2017
Offline
like this ? all I did was I stole your logic from the right and put that into a loop to do the ‘drape’ action for each segment (prim)

Attachments:
hanging_cable_mod.hipnc (84.7 KB)

  • Quick Links