1
$\begingroup$

I am trying to animate scene using Blender Python to change values of the Geometry Nodes modifier inputs, but I get an error saying TypeError: bpy_struct.keyframe_insert() property "Input_2" not found.

For the keyframe_insert() I've used same logic as I found it for standard modifiers.

bpy.data.objects["Cube"].modifiers["GeometryNodes"]["Input_2"] = 2
bpy.data.objects["Cube"].modifiers["GeometryNodes"].keyframe_insert(data_path="Input_2",frame=1)
$\endgroup$

1 Answer 1

3
$\begingroup$

Solution was to use the string for data_path as '["Input_2"]'

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .