I've converted the following code from being all pymel to mostly using the Maya API, mainly for fun:
http://www.fevrierdorian.com/blog/post/2011/03/14/Remplir-un-mesh-de-spheres-dans-Maya-La-methode-d-un-senior My code is available here: http://pastebin.com/3KbhXagZ It's a bit faster...I also attempted to translate the french parts of the code into English, though I don't speak French, so it's just an educated guess.... I was hoping to create a "skeletonizer" script, but maybe someone will find what I've got here useful as is... -- view archives: http://groups.google.com/group/python_inside_maya change your subscription settings: http://groups.google.com/group/python_inside_maya/subscribe