Last active
August 29, 2015 11:55
-
-
Save hamada-lemois/9630391b793807c0191d to your computer and use it in GitHub Desktop.
BlenderからUnityにリグをもっていくためのスクリプト / The script to bring rigs for Unity from Blender
This file contains hidden or 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 re | |
| import bpy | |
| porg = re.compile('ORG-*') | |
| for object in bpy.context.object.data.bones: | |
| object.use_deform = False | |
| for object in bpy.context.object.data.bones: | |
| if porg.match(object.name): | |
| object.use_deform = True | |
| bpy.context.object.data.bones['ORG-heel.L'].use_deform = False | |
| bpy.context.object.data.bones['ORG-heel.02.L'].use_deform = False | |
| bpy.context.object.data.bones['ORG-heel.R'].use_deform = False | |
| bpy.context.object.data.bones['ORG-heel.02.R'].use_deform = False |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment