sanostol Posted April 17, 2011 Share Posted April 17, 2011 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 Quote Link to comment Share on other sites More sharing options...
bhaveshpandey Posted April 17, 2011 Share Posted April 17, 2011 how about copying particle ID to some dummy attribute like mypid and then inputting it to the import attribute vop as point number? Quote Link to comment Share on other sites More sharing options...
sanostol Posted April 18, 2011 Author Share Posted April 18, 2011 the id doesn't help, i need the pointnumber to feed it into the import attribute. id is not correct Quote Link to comment Share on other sites More sharing options...
Div Posted April 18, 2011 Share Posted April 18, 2011 What about using the sort sop to set your point numbers to your ids... This will works if your number of particles is always constant or increasing, no particle kills... Quote Link to comment Share on other sites More sharing options...
sanostol Posted April 18, 2011 Author Share Posted April 18, 2011 sort sop is fine, but it is sop not vex, and it does not exist in POP anyway Quote Link to comment Share on other sites More sharing options...
Div Posted April 18, 2011 Share Posted April 18, 2011 (edited) 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 April 18, 2011 by Div Quote Link to comment Share on other sites More sharing options...
sanostol Posted April 18, 2011 Author Share Posted April 18, 2011 the problem is that I'm splitting from instance volume, this way does not inherit the velocity of the parent. I'm looking for a way to fix that, probably sopsolver will be the way to go for now Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.