Distributing points evenly on a line/vertex.

   2798   1   1
User Avatar
Member
3 posts
Joined: April 2017
Offline
Hi,

Fairly new to Houdini, been a couple years since I've played with it. Currently trying to create a network of points connected to various other points. I have a Wrangle with addprim(geoself(),"polyline",@ptnum,@ptnum+1); in the VEX that creates the lines, and I was wondering if there was a node that would distribute points in the middle of those. I'd like to take those new points and raise them and then get curved lines after the fact.

maybe this isn't a great way to do this but I'm open to suggestion

thanks!

Edit: Refine looks like it does the job! But is there a way to turn the new points into their own group?
Edit2: figure I'll just manually choose the group based on the amount of OG points and just select those and lower them, rather than raise the new ones. HOWEVER, I can't seem remember how to curve the lines. Is it not possible since the lines were created by an AttribWrangle a few nodes ago?
Edit: the convert sop, sorry to use this topic as my own troubleshooting diary (thanks to atnx from the houdini discord)
Edited by chrisrutherford - Sept. 20, 2021 18:54:14
User Avatar
Member
504 posts
Joined: July 2005
Offline
Hi,

you can use resample (with maximum segments option) to add as many inbetween points you want. After this you can use the @curveu attribute (multiplied by primitive point number - 1) to control the deformation of the midpoints.

Attachments:
midpoints_deform.hipnc (97.9 KB)

  • Quick Links