Space Switcher is an add-on that gives you the control on Armature Pose Bones animation no matter what hierarchy they have.
With this add-on you can in fact swtich between Local and Global Space of the Selected Pose Bones by connecting the Bones to the Empties with the same Baked Transforms via Constraints.
After being installed add-on's UI will appear at the N-panel within the Animation tab
The name of the N-panel tab that contains the UI
Set of the animtion channels of Selected Pose Bones that you want to be "sticked" to created Empties
Set the desired Baking Frame Range directly from Scene settings (Scene Frame Start, Scene Frame End)
Custom Frame Start
Custom Frame End
Bake the selected animation channels onto created Empties (Selected Pose Bones animation itself won't be baked at this step)
Simple visual switch between Selected Pose Bones connected/not connected to the Empties
For the Selected Pose Bones delete everything (Empties and their Actions, Bones Constraints) that is connected to the last Bake to Empties operation
Delete everything from scene (Empties and their Actions, Bones Constraints) that is connected to any Bake to Empties operation
Bake the final Empties animation back to the Selected Pose Bones (creates/overwrites Baked Action)
Execute Attach Clear operator after Bake
Create New Action after Baking instead of overwriting the existing
When baking Scale, be awared that scale inherited with Share cannot be in any way represented by Transforms (as Transforms channels are stored separately). That is why you may have a visual difference between "parented" Scale and Baked Scale in Animation.
Unfortunately classic Baking option in Blender doesn't provide with options to Bake only certain channels (e.g. only Loc, Rot or Scale). So if you need to tweak for example only Location it is a good idea to Bake everything to a new Action and then just copy-paste only those keys that are needed for your current Animation.