I am new to both Python and Blender. I am trying to add or change a keyframe on a specific geometry node within Blender. I found a code snippet that demonstrates how to keyframe a general property within Geometry Nodes, but I am unsure how to apply this to a specific node, such as a Value node.
Here’s the code snippet I found:
bpy.data.objects["Cube"].modifiers["GeometryNodes"]["Input_2"] = 2
bpy.data.objects["Cube"].modifiers["GeometryNodes"].keyframe_insert(data_path='["Input_2"]', frame=1)
However, I need to keyframe a specific node like the Value node for “Sound to Sample” or what used to be referred to as “bake to f-curve”. I’m struggling to understand how to target this specific geometry node and apply a keyframe to it.
Deniz Böttcher is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.