I want to add keyframes for a "Dynamic Paint" modifier setting "Alpha" Using Python
I've found that you can keyframes in many different locations along the data_path, not just at the object level.
This conversation clarified that a bit:
Adding Keyframes to Evaluation-Time Using Python
using-python
some_obj.modifiers[&quot;Dynamic Paint&quot;].brush_settings.paint_alpha = 0
some_obj.modifiers[&quot;Dynamic Paint&quot;].brush_settings.keyframe_insert(data_path=&quot;paint_alpha&quot;, frame=150)
some_obj.modifiers[&quot;Dynamic Paint&quot;].brush_settings.paint_alpha = 1
some_obj.modifiers[&quot;Dynamic Paint&quot;].brush_settings.keyframe_insert(data_path=&quot;paint_alpha&quot;, frame=190)