Hi, there is a script already there to convert particles to locators. Look in the dg_voroTK.mel file and you will see dg_parToLoc , this relys on another procedure; isPointInsideOfMesh, which in turn relys on the rayIntersect plugin, from Highend3D.
NB. I compiled the plug on my own machine, and named it rayIntersectCmd, so if yours is not named so, you will have to change that in the isPointInsideOfMesh proc.
eg this:
if (!`pluginInfo -q -loaded "rayIntersectCmd"`)
loadPlugin "rayIntersectCmd";
might be changed to this:
if (!`pluginInfo -q -loaded "rayIntersect"`)
loadPlugin "rayIntersect";
BTW, the rayIntersect is definitely the way to go for checking if particles or anything are in your mesh. Also it’s pretty easy to compile, so a good place to start if your interested in plug-ins.
If you can’t get the rayIntersect plug, it’s pretty easy to convert particles to locators. Have a read through the original script posted back in this thread.
Why locators? Well, they are easy to move around individually, you could deform a bunch of them with deformers etc, and also you could create them from point data read in from external applications;)
Cheers
Dave.


