Jump to content
garf

VEX compare two sets of points and delete by id

Recommended Posts

I have two sets of points and I want to compare them by id. If there are matching ids then I want to delete the matched from one of the sets.

Any pointers appreciated.

Cheers

Share this post


Link to post
Share on other sites

Figured it out!

Plug one stream into the first port and one into the second of a wrangle:

 

int match_pt = findattribval(1, "point", "id", @id); 
removepoint(0, match_pt);

Share this post


Link to post
Share on other sites

alternative code

if(idtopoint(1, i@id) != -1) removepoint(0, @ptnum);

  • Thanks 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×