Add keyframes of geometry node by python script

Hi blender community,

I’m trying to add keyframes by python script, but I don’t know how to proceed. Nothing is displayed in the info area when I manually add the keyframes in the tab modifiers properties (geometry nodes). Do you have any idea how I could do this?

Thanks for answer.


CAP2

You’re not actually adding a keyframe, you’ll need keyframe_insert() for that:
https://docs.blender.org/api/current/bpy.types.bpy_struct.html#bpy.types.bpy_struct.keyframe_insert

1 Like