Script to Insert Keyframe for Fluid "effector_settings.use_effector" property 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=&quot;effector_settings.use_effector&quot;,frame=1)

problem is that an error is thrown.
Traceback (most recent call last):
  File &quot;C:\Program Files\Blender Foundation\Blender 2.91\2.91\python\lib\code.py&quot;, line 90, in runcode
    exec(code, self.locals)
  File &quot;&lt;blender_console&gt;&quot;, line 1, in &lt;module&gt;
TypeError: bpy_struct.keyframe_insert() property &quot;effector_settings.use_effector&quot; not found



I will iterate over all selected objects once I have this piece sorted.
Cheers
I solved it by using:
obj.modifiers['Fluid'].effector_settings.keyframe_insert(data_path=&quot;use_effector&quot;,frame=5)