thank you VERY much for the code! It helps me more than you may think!
The resulting script is for debugging purposes of my main problem - another script I wrote to batch rename bones in a way, that everything, which depends on it will be renamed/rearranged in a way, that the whole logic of a blend file does not fall apart.
The script renames bones and vertex groups according to some regex.
Problem: After the script has finished, a lot of drivers will be marked as “erroneous” in the driver
Interestingly when I rename a bone by hand via Blender (that is: not via script), this does not happen.
So I “need to rename the driver” (or what else action I need to perform with “the driver”) also.
How can I do that…?
Do I need any other entities in a blend file, which depends on the name of bones?