I read a post by @buzzkirill looking for an addon to help create shape key drivers using bones as the controllers. It was mentioned that there was a ‘Free but abandoned’ addon created by @ndee. I’ve updated some of my own un-released addons to work with current versions of blender, so I took a look at this addon and updated it to work with current versions of blender.
You can find my updated version here:
https://github.com/revolt-randy/Shapekey_Driver_Creator
I forked the old code, updated it to work with blender 3.65, renamed it, and added in a feature to add limiting constraints on the bones.
The reason why I renamed it was because it was originally called ‘Shapekey Driver to Bone Constraint’. I wanted to remove the word ‘constraint’ from the name to avoid confusion with constraints.
How to install:
Since I worked on this in 3.6.5 it is meant to be installed as an add on - copied to your scripts/addons folder. It can also be installed from User Preferences → Add-ons by clicking on the down arrow in the upper right corner of the User Preferences window and choosing ‘Install from Disk…’
How to use:
- select a mesh object, then shift-select an armature, enter pose mode and select the controller bone.
- the addon can now be accessed from the Pose menu in the 3D view, or the w-key → Pose Context Menu, or the F3 Search menu.
Once it’s started you’ll find this pop-up -
and here’s what those settings do:
- Get Limits - if this check box is checked and the controller bone has been moved/rotated/scaled, it will consider that to be the max value where the shapekey is at 1.
- Shape - the shapekey to be driven.
- Type - how the bone will control the shapekey - X loc, Y rot, etc…
- Space - the bone’s space
- Min Value - the bone’s value where the shapekey will be at 0
- Max Value - the bone’s value where the shapekey will bat at 1
- Add Limit Constraint - this will add a Limit Loc/Rot/Scale constraint to the bone limiting it to the Min & Max values for the driver. *
- Constraint Space - the space for the limiting constraint - World, Pose, etc…
The new ‘Add Limit Constraints’ feature isn’t perfect, but it does work fairly well.
I welcome any feedback…
Randy
