Jump to content

Set N points to same Y position


etudenc

Recommended Posts

Hi all,

Please see the attached picture -- for every three points, I want the second and third to match the position in Y of the first.  So I'd like points 1 and 2 to match the Y position of 0, points 4 & 5 to match the Y position of 3, and so on up the row of points.  So far I'm not having luck with a wrangle, have tried to use a For-Each but no joy. Any suggestions?

Failed attempt in a point wrangle:

vector pos, oldPos;
int pt;
if(@id%3==0) {

   pt=@id;
   pos=point(0,"P",0);
   oldPos=point(0,"P",(pt+1));
   setpointattrib(0, "P", 1, set(oldPos.x, pos.y, oldPos.z));
   
   }

 

 

 

points.jpg

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...