Hi, I’ve got this working in 2.77. It works pretty well. I am trying to add a shape for H. It doesn’t autogenerate the bone for H it seems. I tried adding to the specific bones like so. This doesn’t seem to work either. Plus the change to the dictionary.
I made the change to the file in the roaming data folders rather than anywhere else. Have I gone wrong somewhere?
#Add bone for every shape-key, except those starting with ! shapeKeys = shapeObj.data.shape_keys.key_blocks num = 0; for key in shapeKeys: if((key.name[0:3]=="qt_") or (key.name in ["AI","O","E","U","ETC","L","WQ","MBP","M","FV","TH","H"])): self.addPanelBone(arm,panelroot,key.name,num) num=num+1
#Select pose mode to edit the rig to set limits bpy.ops.object.mode_set(mode='POSE') pose = armObj.pose for key in shapeKeys: if((key.name[0:3]=="qt_") or (key.name in ["AI","O","E","U","ETC","L","WQ","MBP","M","FV","TH","H"])): self.setBoneLimits(pose.bones[key.name])
#Add drivers to the all the shape keys for key in shapeKeys: if((key.name[0:3]=="qt_") or (key.name in ["AI","O","E","U","ETC","L","WQ","MBP","M","FV","TH","H"])): self.addDriver(key,key.name,armObj,pose.bones[key.name])
Thanks for the addon btw, I think I prefer this to the other options