Hello Everyone,
I hope you are doing well!
I have a rigged character with Rigify add-ons as well as a model that has shape keys and I have to animate those shapes so I have added extra bones in the rig so I can control the shape key by adding drivers and bone.
After completing the 3 different-different actions in blender with different different shape keys
all animations and shape keys animation work proper in blender.
But getting problems,
when I export the fbx with all those animations and import in unity engine, Rig(Armature) actions run same as in blender. Isuse is the shape keys action run same in all different actions.
Is there any solution for that. Please help me out from this problem. I will be thankful.
The fact is that, the fbx exporter only read shape key animations from “shape key’s sliders”.
and “bake action” ll not bake your driven shape keys…
but apparently… there is a script for it…
didn’t try it.
edit: tested, it works
but it’ll kill your selected object drivers…
you need to enhance the script for “capturing” the driver value before baking and recreate it after.
or reload your non baked file after baking operation or undo…
import bpy
context = bpy.context
scene = context.scene
object = context.object
frame = scene.frame_start
while frame <= scene.frame_end:
scene.frame_set(frame)
for fcurve in object.data.shape_keys.animation_data.drivers.values():
object.data.shape_keys.keyframe_insert(fcurve.data_path)
frame = frame + 1