Jump to content

attribute transfer if attributes don't match


hmihalis1

Recommended Posts

Hi all,

i've got some points with trails and i'm filtering them randomly to leave some behind as the trails move forwards. each trail is split into a leading point and the trailing points, and each trail and its leader have a unique id. what I want to do is take the points i've left behind and remove them if they come into contact with another point trail that has a different id. so something like an attribute transfer but with a condition that checks the near points id and only transfers some attribute if that id is different.

compare.thumb.JPG.8a9488dee57cbd458870c531043a3bf3.JPG

so the white points from trail 1 would exist until the come in contact with the red points from trail 2.

Any ideas how to do this in vex or vops?

Many thanks,

 

 
Link to comment
Share on other sites

amazing thanks so much Gorrod, that little bit of syntax in the nearpoint function was i'll I needed :)

I put it into a sop solver and multiplied the pscale down instead of removing the point just in case it results in drops popping out of existence when meshed.

Edited by hmihalis1
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...