old topic, but i got same problem. when i bake actions, i can bake only one action and automaticly ALL IK constrains removed break other actions.
Please note i want have multiple actions, not one action with all animations.
is there a way to bake all animation actions(with removed constrains and visual keying) not just one that will break others?(due to removed constrains)
im using blender 2.8 and i use gltf exporter for it where none of options do same as baking action.
any way i cant bake all this actions?
i also found some code i can run so it dont break on one actions so can make on multiple actions:
ActionName = "Action"
action = bpy.data.actions[ActionName]
bakedaction = bpy.data.actions.new(ActionName+"BKD")
for fcurve in action.fcurves:
frame = action.frame_range
newcurve = bakedaction.fcurves.new(fcurve.data_path,fcurve.array_index)
while frame <= action.frame_range:
frame += 1
BUT… it break overall
i understand second parameter should be keyword, but not sure what to replace there.