Skip to content

Instantly share code, notes, and snippets.

@satori99
Created November 19, 2015 00:16
Show Gist options
  • Save satori99/5fb5c8c895f3c880ba5f to your computer and use it in GitHub Desktop.
Save satori99/5fb5c8c895f3c880ba5f to your computer and use it in GitHub Desktop.
import bpy
arm = bpy.data.objects["Armature"]
bones = set(b.name for b in arm.data.bones if b.use_deform)
for action in bpy.data.actions:
supported = not bool(set(g.name for g in action.groups).difference(bones))
print("arm '%s' can be animated by action '%s' %s" % (arm.name, action.name, supported))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment