-
Notifications
You must be signed in to change notification settings - Fork 1
/
TK7_Bone_Organizer_v1.py
111 lines (109 loc) · 6.26 KB
/
TK7_Bone_Organizer_v1.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
import bpy
# TK7 Bone Organizer
# In OBJECT mode, select Armature
# Run Script
# Primary bones will be on layer 16 and Finger bones on layer 17
# Works best on fresh TK7 Armature. To reset make sure all layeres are selected
# and change bone layer to 0.
bpy.context.object.data.bones['Spine1'].layers[0] = False
bpy.context.object.data.bones['Spine1'].layers[16] = True
bpy.context.object.data.bones['Spine2'].layers[0] = False
bpy.context.object.data.bones['Spine2'].layers[16] = True
bpy.context.object.data.bones['Neck'].layers[0] = False
bpy.context.object.data.bones['Neck'].layers[16] = True
bpy.context.object.data.bones['Head'].layers[0] = False
bpy.context.object.data.bones['Head'].layers[16] = True
bpy.context.object.data.bones['Hip'].layers[0] = False
bpy.context.object.data.bones['Hip'].layers[16] = True
bpy.context.object.data.bones['L_Pinky1'].layers[0] = False
bpy.context.object.data.bones['L_Pinky1'].layers[17] = True
bpy.context.object.data.bones['L_Pinky2'].layers[0] = False
bpy.context.object.data.bones['L_Pinky2'].layers[17] = True
bpy.context.object.data.bones['L_Pinky3'].layers[0] = False
bpy.context.object.data.bones['L_Pinky3'].layers[17] = True
bpy.context.object.data.bones['L_Ring1'].layers[0] = False
bpy.context.object.data.bones['L_Ring1'].layers[17] = True
bpy.context.object.data.bones['L_Ring2'].layers[0] = False
bpy.context.object.data.bones['L_Ring2'].layers[17] = True
bpy.context.object.data.bones['L_Ring3'].layers[0] = False
bpy.context.object.data.bones['L_Ring3'].layers[17] = True
bpy.context.object.data.bones['L_Middle1'].layers[0] = False
bpy.context.object.data.bones['L_Middle1'].layers[17] = True
bpy.context.object.data.bones['L_Middle2'].layers[0] = False
bpy.context.object.data.bones['L_Middle2'].layers[17] = True
bpy.context.object.data.bones['L_Middle3'].layers[0] = False
bpy.context.object.data.bones['L_Middle3'].layers[17] = True
bpy.context.object.data.bones['L_Index1'].layers[0] = False
bpy.context.object.data.bones['L_Index1'].layers[17] = True
bpy.context.object.data.bones['L_Index2'].layers[0] = False
bpy.context.object.data.bones['L_Index2'].layers[17] = True
bpy.context.object.data.bones['L_Index3'].layers[0] = False
bpy.context.object.data.bones['L_Index3'].layers[17] = True
bpy.context.object.data.bones['L_Thumb1'].layers[0] = False
bpy.context.object.data.bones['L_Thumb1'].layers[17] = True
bpy.context.object.data.bones['L_Thumb2'].layers[0] = False
bpy.context.object.data.bones['L_Thumb2'].layers[17] = True
bpy.context.object.data.bones['L_Thumb3'].layers[0] = False
bpy.context.object.data.bones['L_Thumb3'].layers[17] = True
bpy.context.object.data.bones['R_Pinky1'].layers[0] = False
bpy.context.object.data.bones['R_Pinky1'].layers[17] = True
bpy.context.object.data.bones['R_Pinky2'].layers[0] = False
bpy.context.object.data.bones['R_Pinky2'].layers[17] = True
bpy.context.object.data.bones['R_Pinky3'].layers[0] = False
bpy.context.object.data.bones['R_Pinky3'].layers[17] = True
bpy.context.object.data.bones['R_Ring1'].layers[0] = False
bpy.context.object.data.bones['R_Ring1'].layers[17] = True
bpy.context.object.data.bones['R_Ring2'].layers[0] = False
bpy.context.object.data.bones['R_Ring2'].layers[17] = True
bpy.context.object.data.bones['R_Ring3'].layers[0] = False
bpy.context.object.data.bones['R_Ring3'].layers[17] = True
bpy.context.object.data.bones['R_Middle1'].layers[0] = False
bpy.context.object.data.bones['R_Middle1'].layers[17] = True
bpy.context.object.data.bones['R_Middle2'].layers[0] = False
bpy.context.object.data.bones['R_Middle2'].layers[17] = True
bpy.context.object.data.bones['R_Middle3'].layers[0] = False
bpy.context.object.data.bones['R_Middle3'].layers[17] = True
bpy.context.object.data.bones['R_Index1'].layers[0] = False
bpy.context.object.data.bones['R_Index1'].layers[17] = True
bpy.context.object.data.bones['R_Index2'].layers[0] = False
bpy.context.object.data.bones['R_Index2'].layers[17] = True
bpy.context.object.data.bones['R_Index3'].layers[0] = False
bpy.context.object.data.bones['R_Index3'].layers[17] = True
bpy.context.object.data.bones['R_Thumb1'].layers[0] = False
bpy.context.object.data.bones['R_Thumb1'].layers[17] = True
bpy.context.object.data.bones['R_Thumb2'].layers[0] = False
bpy.context.object.data.bones['R_Thumb2'].layers[17] = True
bpy.context.object.data.bones['R_Thumb3'].layers[0] = False
bpy.context.object.data.bones['R_Thumb3'].layers[17] = True
bpy.context.object.data.bones['L_Shoulder'].layers[0] = False
bpy.context.object.data.bones['L_Shoulder'].layers[16] = True
bpy.context.object.data.bones['L_Arm'].layers[0] = False
bpy.context.object.data.bones['L_Arm'].layers[16] = True
bpy.context.object.data.bones['L_ForeArm'].layers[0] = False
bpy.context.object.data.bones['L_ForeArm'].layers[16] = True
bpy.context.object.data.bones['L_Hand'].layers[0] = False
bpy.context.object.data.bones['L_Hand'].layers[16] = True
bpy.context.object.data.bones['L_UpLeg'].layers[0] = False
bpy.context.object.data.bones['L_UpLeg'].layers[16] = True
bpy.context.object.data.bones['L_Leg'].layers[0] = False
bpy.context.object.data.bones['L_Leg'].layers[16] = True
bpy.context.object.data.bones['L_Foot'].layers[0] = False
bpy.context.object.data.bones['L_Foot'].layers[16] = True
bpy.context.object.data.bones['L_Toe'].layers[0] = False
bpy.context.object.data.bones['L_Toe'].layers[16] = True
bpy.context.object.data.bones['R_Shoulder'].layers[0] = False
bpy.context.object.data.bones['R_Shoulder'].layers[16] = True
bpy.context.object.data.bones['R_Arm'].layers[0] = False
bpy.context.object.data.bones['R_Arm'].layers[16] = True
bpy.context.object.data.bones['R_ForeArm'].layers[0] = False
bpy.context.object.data.bones['R_ForeArm'].layers[16] = True
bpy.context.object.data.bones['R_Hand'].layers[0] = False
bpy.context.object.data.bones['R_Hand'].layers[16] = True
bpy.context.object.data.bones['R_UpLeg'].layers[0] = False
bpy.context.object.data.bones['R_UpLeg'].layers[16] = True
bpy.context.object.data.bones['R_Leg'].layers[0] = False
bpy.context.object.data.bones['R_Leg'].layers[16] = True
bpy.context.object.data.bones['R_Foot'].layers[0] = False
bpy.context.object.data.bones['R_Foot'].layers[16] = True
bpy.context.object.data.bones['R_Toe'].layers[0] = False
bpy.context.object.data.bones['R_Toe'].layers[16] = True