Bulk modify curves/curve modifiers

Hey all I was wondering if there were anyway to add, remove, copy and paste curve modifiers for multiple curves and bones? I have an animation that I have added cycle modifiers to many of the curves but now need to remove them. Doing so by hand will be a time consuming process. Thanks for your help.

hi, this little script should delete CYCLES modifiers on selected objects fcurves
you can then edit it to do your own stuff…


import bpy
for obj in bpy.context.selected_objects:
    if obj.animation_data:
        for fc in obj.animation_data.action.fcurves:
            for m in fc.modifiers:
                if m.type == 'CYCLES':
                    fc.modifiers.remove(m)

see here for a bit more complex example

Hey! Thanks so much for taking the time to reply. I try this out.