Glad you think it’ll be useful, and I too agreed with Krokodil that sliders ought to be an option at least so the latest version of that plugin does indeed contain a drop-menu to select between rotation and translation as the basis for the shape-key controlling bones.
Not at all. I’ve been programming for nearly 30 years, I’m well aware all code has bugs, even mine. Actually especially mine since I rarely get bug reports on other’s code. You get used to trying to put ego aside. I know you can criticise my code without it being a criticism of me personally.
Having said that, it works for my purposes so I may not have time to do anything actually complicated or difficult to improve it
pre: Have you thought about trying your plugin with with a Makehuman character. Makehuman is a program in which you can create a rigged human character and save it out into a format (.mhx) that can be imported into blender. IF you use the newer .mhx2 format you can tell the importer to create facial expression, a facial righ and vismeme shape keys automatically. I know that visemes are different from phoneme. From what I read on wikipedia visemes are much more basic units of speech. That is phonemes are composed of visemes. But with the automatic creation that .mhx2 offers and your addon it would seem like a perfect fit.
I have used makehuman, though the latest version I used is at least a year old now and probably older than two. IIRC it looked like the visemes were still in development in that last version I used.
If it creates shape-keys with the standard viseme set then simply naming those keys appropriately should enable creation of the control-panel and building of the animation curves from the script to adjust it.
If it adds a more complicated face-control system then presumably you can shape the face with that and then create shape-keys from the mix I guess.
Might look into it next time I have to build a human shaped thing.
Ok I do not now enough about the technical and programming side of thing of either blender,makehuman or mhx2 so take everything I say with a grain of salt.
About a year ago the import format for makehuman to blender (mhx) split off into its own project. ThomasL the developer of the mhx format started his own blog and developed a new format called mhx2 that has a lot more features. The old mhx export is still distributed with the official makehuman distro but ThomasL offers the mhx zip at his blog and on github for free.
So you would probably want to ingore the official distro of makehuman at www.makehuman.org and get the dev version at
I use tortisehg to get it and update it. Do not ask me all the ins and outs. As I said I am not that much of a technical person. I just know how to download it,install it and update it when there is a feature that I want to use.
Second you need to get the mhx2 zip from ThomasL’s website/repostory
That page has the dowload link and documentations and instructions.
Third If I may toot my own horn I made a min tutorial on how to enable visemes for a makehuman character