kishxn
how to calculate 2 particles distancePP with pointNode?
pls help
pshipkov
Do you mean - how to calculate distance between the points with the same ids of two particle shapes ?
Reply 0 0
kishxn
yes
Reply 0 0
pshipkov

particleShape2.distancePP = mag(particleShape1.position-particleShape2.position);

Reply 0 0
kishxn
particleShape1, particleShape2 position is same..
but distancePP gives wrong value....
test this scene.....

pls solve my big problem...... 
Reply 0 0
pshipkov
Weird. If you use two particle shapes with changing point count over time everything seems to be fine. Looks like some peculiar optimization on the maya side.

One thing you can do is do this:
define a procedure that reads the .position attribute on the particle shapes and then calculates the difference. Basically the one line you have in the particle expression goes in the global procedure. Then in the particle expression should look like this:

if(id == 0) distancePP = myProcedure();

Wonder if that is going to work ? I didn't have time to try it.
Reply 0 0
kishxn
 i cant understand...
pls give scene file or full expression....
Reply 0 0
Reply