A simple tool that analyzes a Maya scene and stores and restores all joint hierarchies.
Stores all hierarchies, bones, index order, and complete transform with joint orientation.
Restores any deleted joints, and reuses existing joints whenever possible.
Clone or download this folder into your python scripts path.
Import and initalize restoreSkeletons in your Python script editor:
import restoreSkeletons
restoreSkeletons.RestoreSkeletons()