2026-03-16

This commit is contained in:
2026-03-17 15:39:39 -06:00
parent 67782275d5
commit 330fed4231
29 changed files with 532 additions and 199 deletions
@@ -0,0 +1,24 @@
import bpy
class RemoveActionFakeUsers(bpy.types.Operator):
"""Remove fake users from all actions so only used animations are kept on save"""
bl_idname = "bst.remove_action_fake_users"
bl_label = "Remove Action FU"
bl_description = "Remove fake users from all actions so only used animations are kept"
bl_options = {'REGISTER', 'UNDO'}
def execute(self, context):
actions = bpy.data.actions
cleared_count = 0
for action in actions:
if getattr(action, "library", None) is not None:
continue
if action.use_fake_user:
action.use_fake_user = False
cleared_count += 1
print(f"Removed fake user from action '{action.name}'")
self.report({'INFO'}, f"Removed fake users from {cleared_count} actions")
return {'FINISHED'}