So, drivers was my thought also, but for more advanced setups you can use python scripting. Also I believe there is a way to link drivers and python scripts.
I haven’t started learning Python yet, but it’s pretty easy to do things if you have done other programming/scripting languages. I mean I’ve created 4 addons to make my life easier just by looking at the templates and using developer extra and python tool tips. I also learned a lot from rigify’s UI script. One day I’ll learn Python properly.