//source the script //to use select all the particle systems, or just on particle system //type "mp2csv("someName") in the command line //it will write a text file which can be read into rhino or GC (or others) //the file will be located in you default script directory proc mp2csv(string $fname) { $ctime = `currentTime -query`; $exampleFileName = ( `internalVar -usd` + $fname + $ctime + ".txt" ); $fileId = `fopen $exampleFileName "w"`; $sel = `ls -sl`; int $selsize = `size($sel)`; for ($j=0; $j<$selsize; ++$j) { for ($i=0; $i<`getAttr ($sel[$j] + ".count")`; $i++) { float $partPos[] = `getParticleAttr -at pos ($sel[$j] +".pt[" +$i+"]")`; float $pos1x = $partPos[0]; float $pos1y = $partPos[1]; float $pos1z = $partPos[2]; fprint $fileId ($pos1x + "," + $pos1y + "," + $pos1z + "\n"); } } fclose $fileId; print ("File created at " + `internalVar -usd` + $fname + ".txt"); }