Removing unused actions while developing animation scripts is necessary to avoid clattering of .blend
file. I have written a script to dispose of mesh objects and any associated data that is not shared
with another object and it works as expected with one exception. Animation data Action which was
created with new F-CURVE. If the action is created through ‘keyframe_insert’, it is removed with no
problems. But if I create a new f-curve, that action will not go away, no matter what. I need to
re-load the .blend file for it to go to the ‘orphaned data’ folder.
Rather than posting code here, I attach a sample file with all the script functions. If anyone has
seen the light with this and would be willing to help out I will be grateful.
ani_action.blend (670.9 KB)
ps. I am using version 2.83.5