Hi, I’m trying to control character expression shapekeys using X-Pose Picker. All of my characters have shapekeys with some identical names like “Smile”, “Sad”, “Anger” etc. I’ve created a tab in X-pose picker where I can quickly change the value of these keys without having to exit pose mode to access object data properties.
Currently, if there is only one character loaded into the scene, these scripted expression buttons have no problem changing the shapekey. Once another character is added, bpy.data.shape_keys[“Key”] adds a randomly assigned number to specify which Key. bpy.data.shape_keys[“Key.009”].
So the following scenario will happen:
Char1 = bpy.data.shape_keys[“Key.009”]
Char3 = bpy.data.shape_keys[“Key.004”]
How can I script to retrieve the current active mesh key?