Jump to content

Add POPs to group when advected


gpapaioa

Recommended Posts

I am advecting with a custom vel vol, with popadvectbyvolumes.

I had a thought: whenever a particle is advected, it could pick up an attribute from 0 to 1 (like attribopy in SOPs). And later with a POPwrangle, group the ones with 1. Need to research if this is possible in DOPs.

Link to comment
Share on other sites

inside a sopsolver in your dopnet you could create an object merge to bring in your velocity field and check if the particle is inside the velocity field.

v@vel = volumesamplev(1, 'vel', @P);

you can also reduce it to a float by calculating the length of the vector

f@speed = length(v@vel);

you can then either use that attribute to gradually activate another force or use it to add particles to a group

if(f@speed > 0){
    @group_advected = 1;
}
Edited by bengaet
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...