Scattered lines same point order

   1813   3   0
User Avatar
Member
10 posts
Joined: Dec. 2018
Offline
Hey everybody!

i hope someone can help me out with a little problem i can't solve alfter googling for hours.

I have a Grid with multiple rows and columns and than i used a CopyToPoints SOP to scatter a some Lines on every point with each line having 8 segmets, quite simple setup.

The thing ist, the point order on those lines is all over the place but what i need is for every line to have the exact same ptnum from bottom to top.

every help is appreciated
User Avatar
Member
478 posts
Joined: Feb. 2012
Online
If I understand you correctly you need to use a vertexprimindex function.
so it would be

i@index = vertexprimindex(0, @vtxnum);

Attachments:
houdini_3w9Aw7E6ZX.png (178.6 KB)
houdini_OWlt5itJn8.png (21.0 KB)

User Avatar
Member
10 posts
Joined: Dec. 2018
Offline
Awesome, that is exactly what i needed... Tank you Sepu!

I'm still pretty much a noob and havent even dabbled in the topic of vertecies.

Thanks man!
User Avatar
Member
9584 posts
Joined: July 2007
Offline
Alternatively you can use Enumerate SOP in Point mode right after your lines
Just to store ptnum in an attribute before copying

Since ptnum itself is always continuous and unique for each point within geometry
Tomas Slancik
CG Supervisor
Framestore, NY
  • Quick Links