Jump to content

How to copy particles attributes between two POP Solvers?


catchyid

Recommended Posts

Hi,

Inside a DOP network, I have two pop solvers A and B, each has its POP object/source. Source A emits particles, Source B emits particles from Source A. My question: I want Source B to inherit some particles attributes already in A, e.g. if a particle in source A has attribute f@density = 0.6, then if this particle were to emit another particle in Source B, then the new particle should have f@density = 0.6 as well. 

I've tried to use VEX pop wrangler  f@density = pointattrib("/obj/smoke_particles_sim/popobject_A/Geometry", "density",@sourceptnum,i@r); but that did not work (I think the function is excepting a SOP object and not a DOP geometry)

Thanks,

pop_attribute_transfer.png

Link to comment
Share on other sites

I never emitted particles from particles this way, but normally a pop source adds all attributes from the source geometry. Just tested it and it works. So if you have an attribute called test in your popobject1, it should be automatically available in popobject2.

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