Hi AO
Example: Plane - emit from surface - use the center of the plane as the origin.
Add radiusPP to the particles and change them to spheres.
Create a locator - to be where you want the zero point to be- t=in this case the center of plane.
//Put in creation
vector $loc, $pos;
float $dist;
float $scaleFactor = 0.1;
//get locator position
$loc = getAttr locator1.translate
;
//get each particle location
$pos = position;
//distance between
$dist=mag($pos - $loc);
// Set the size of the radiusPP
radiusPP = $dist * $scaleFactor;
So for instance objects the scale value = radiusPP
C