I want a script to make my Pose Mode pose become Edit

It is very difficult to position an armature to a desired resting-pose using Edit Mode. It is very easy to do so in Pose Mode. But the trouble is, once you’ve done that, you now have two entirely separate positions for the armature, and never the twain shall meet.

What I want, very badly indeed, is a script that will take a particular armature and convert it so that its Pose Mode at a particular frame is its resting (Edit Mode) position.

It would be desirable, but not essential, that Actions and the like be automagically converted as well.

The result might reasonably be a new armature.

The mathematics is beyond me, but I see in scripts such as blender2cal3d.py that it is most-definitely not beyond someone!

Can anybody help?

maybe i didn’ t understand your question but…

if you select all the bones and press alt+r and alt+ g you’ll reset all the rotations and locations going back to rest position.

What I wanted to do was to take a Pose and cause the rest position to magically match it.

What I wound up doing was laborious work in Edit Mode. :-?