Keeping pop attributes from birth

   2668   2   0
User Avatar
Member
56 posts
Joined: June 2016
Offline
Hello,

how is it possible to set an attribute in a wrangle SOP based on a group(inpointgroup), and keep that value, even if the group changes. I stumbled over this problem with the following setup.

I create a particle every frame and put it in the “Just Born Group”. All I really want now is to set some attributes at birth. But whatever I set in wrangle, gets reset to 0 if the particle isn't in the just born group anymore. What would be a good workaround for this? Here is an example:



What if I want to find the nearpoints at birth and keep these values, even if the position of the particle changes later on? I hope you get what i mean, maybe i am just overlooking something …

Thanks for reading.

Attachments:
keepvalues.hipnc (195.4 KB)

User Avatar
Member
18 posts
Joined: Aug. 2013
Offline
In sop context, there is no “history”, every frame the value gets recooked. What you can do is drop a pop wrangle in your popnet, and set the value there.
User Avatar
Member
56 posts
Joined: June 2016
Offline
Thanks for the reply,

it works, I just had to remove the inpointgroup condition. Which leaves me with one question, what use is the just born group? Where does it make sense to use it?

  • Quick Links