I have added a cube as an Effector to a fluid sim. I want to use a script to insert a keyframe for the 'Use Effector' property (see image) Here is what i've got so far:
ob = bpy.context.active_object ob.modifiers['Fluid'].keyframe_insert(data_path="effector_settings.use_effector",frame=1)
problem is that an error is thrown.
Traceback (most recent call last): File "C:\Program Files\Blender Foundation\Blender 2.91\2.91\python\lib\code.py", line 90, in runcode exec(code, self.locals) File "<blender_console>", line 1, in <module> TypeError: bpy_struct.keyframe_insert() property "effector_settings.use_effector" not found
I will iterate over all selected objects once I have this piece sorted. Cheers