Jump to content

POP:get an attribute from particle by id in vex


sanostol

Recommended Posts

Hi,

is ther a fast way with out looping through all particles to get the attribute of a particle by ID. for example I'm splitting of particles from the volume of instances and the only way (I'm aware of) to let them inherit the velocity of the source is to copy the velocity of the sourcparticle is right now to use poppointid($PARENT, "v", 0-2). But I would like to stay in VEX for speed reasons and I think it is easier to use.

Martin

Link to comment
Share on other sites

Yes, but in vop context you can just import an attribute from a ptnumber, not from an id.

So I guess the solution is to change the way you copy your velocity to your particles. Not sure to understand how you are generating them, but I think make them inherits the velocity of their parents/emitters at birthing time should be easy. How are you emitting them ?

And the other but heavy solution is to do your particles simulations either with the feedback sop or within the sop solver to have more options than in pops...

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