There's a few scripts on highend that will do this for you, as well as take care of the "3rd parent node" issue
Should be in thier mel "polygons" or "modeling" sections....
One of which I used in my explosion tutorials, but I can't remember the name at the moment
Israel "Izzy" Long
Motion and Title Design for Broadcast-Film-DS
izzylong.com