Is there a simple way to remove existing keyframes for a value?
Say I have added keyframes like so…
Now I run my code again, but I want to remove the previous keyframes before I add replacement keyframes.
There is keyframe_delete, but by the time I run my code again, parameters could have changed and new data could be targeting new frames.
How do I just throw away the existing f-curve?
This seems to work.
def eraseAllKeyframes(passedOB = None): if passedOB != None: ad = passedOB.animation_data if ad != None: passedOB.animation_data_clear()