Select Border ...

   2462   3   1
User Avatar
Member
406 posts
Joined: Aug. 2015
Offline
Hi;
I would like to select and change border edges of a geometry (for example a Grid), using “Wrangle”, So I put these codes in a point wrangle, but it doesn't select all points I need.

i@HEdges=pointhedge(0, @ptnum);
i@HEdCount=hedge_equivcount(0,@HEdges);
if(@HEdCount==1)
{
    setpointgroup(0, "Border", hedge_srcpoint(0, @HEdges), 1, "set");
    setpointgroup(0, "Border", hedge_dstpoint(0, @HEdges), 1, "set");
}

I can't figure out what is wrong with it!
Here, my hip file is attached.

Thanks.
Edited by Masoud - Feb. 8, 2018 07:05:55

Attachments:
Border_08.hip (88.0 KB)
Capture.JPG (83.9 KB)

Masoud Saadatmand (MSDVFX)
User Avatar
Member
406 posts
Joined: Aug. 2015
Offline
Any Idea?
Masoud Saadatmand (MSDVFX)
User Avatar
Member
471 posts
Joined: July 2005
Offline
Hi,

have you tried using vertices instead of points?

It would be nice, if you can provide me with example for the other post (path deform).

Attachments:
Border_08_vertex.hipnc (84.6 KB)

User Avatar
Member
406 posts
Joined: Aug. 2015
Offline
Thank you Aizatulin.
Masoud Saadatmand (MSDVFX)
  • Quick Links