Move points to vertex position

   2128   3   0
User Avatar
Member
948 posts
Joined: April 2008
Offline
I have a bunch of lines all with 2 points and I want each line point that is connected to vertex to move to the position to the ones connect to vertex, so that way all my points for each line goes to the center of each vertex 0, I can do it with a for each loop but I would like to make it work with a wrangle.

I tried that on a primitive wrangle but it didn't work:

vector vtx0 = vertex(geoself(),“P”,@primnum,0);
setpointattrib(geoself(),“P”,@ptnum,vtx0,“set”);

Any tips?
https://vimeo.com/user2163076 [vimeo.com]
User Avatar
Member
948 posts
Joined: April 2008
Offline
Anyone?
https://vimeo.com/user2163076 [vimeo.com]
User Avatar
Member
605 posts
Joined: July 2013
Online
Dont really understand the effect your trying to achieve. Can you post an image of your working for-each solution?
Houdini Indie
Karma/Redshift 3D
User Avatar
Member
948 posts
Joined: April 2008
Offline
I should had explained better my objective I am sorry.

The thing that I am trying to do is to move constraints connections extremities or anchors to a single point in that case I am choosing the first vertex position of the connection line to have both anchor in the same position and I am trying to do it with a wrangle.

Is that make sense to you?
Edited by mzigaib - July 12, 2016 01:16:06
https://vimeo.com/user2163076 [vimeo.com]
  • Quick Links