Jump to content

How to transfer attribute values into new POPnet every frame?


magneto

Recommended Posts

Hi,

 

So I have some points moving outside of a popnet (H13 one), and I calculate their velocity and the magnitude of this outside of the popnet as well.

 

In the popnet, I just emit all points once, which works well and also imports my attribute. But after the first frame, it doesn't import my "speed" attribute.

 

Is there a way to do this? Or should I calculate the speed inside the popnet? If so, how? As I need to access the previous frame.

 

 

Thanks.

Link to comment
Share on other sites

you can just access any attribute from input geometry using point() VEX function in POP Wrangle

just set Input 1 to First Context Geometry and point(0, "speed", @ptnum); will get speed from first input geometry of your dopnet

and since you've created particles only once from all points @ptnum will match, therefore will bring speed value of corresponding point

 

here is example with Cd attribute since it's more visible

ts_update_pop_attrib_from_sops.hip

  • Like 1
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...