You really need to start watching/reading some tutorials on the various aspects of animation. The subject is far too vast to be answered in a single post.
If you have a specific problem, I’m more than happy to help, (if I can), but as I have already said, tutorials are the way to go.
“like how do you pass all the bones names to the function
seems to be complicated in this pose snippet script!”
The problem is, that data is stored in lists and those list are not always in a neat orderly fashion.
There are a number of tutorials, (I’ve used them myself in the past), that deal with list manipulation in Blender, and the passing of data.
I’ll dig around and see what I can find.
You need a code example that can easily be modified for what you require.
My computer access is not flexible at the moment, (community library), so it is sometimes difficult to pass and receive information.
I’ll get back to you when I find something suitable, or someone else answers first.
Don’t give up. Learning is always worth it in the end.
Regards to you.
Cig.
Edit: You should also make a copy of all the Blender functions and internal “names” so you can refer to them, when you are working. This way you will know exactly what a Blender/Python command does, and recognise the difference between a user made name and a keyword, or reference to a Blender “object”. The Wiki was my last port of call but I do not know at present if the site has been updated for the most recent Blender versions.
Anyone else know an up to date resource for Blender internal object names etc?
Just checked my old references. I picked up my Blender “object” lists from Blender.org.