Created
November 19, 2015 00:16
-
-
Save satori99/5fb5c8c895f3c880ba5f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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