Cleanup: trailing space
[blender-addons.git] / rigify / metarigs / Animals / shark.py
blob6559fb4acad3f8486efb13b1df01b9107f9d7e8b
1 # SPDX-License-Identifier: GPL-2.0-or-later
3 import bpy
5 from mathutils import Color
8 def create(obj):
9 # generated by rigify.utils.write_metarig
10 bpy.ops.object.mode_set(mode='EDIT')
11 arm = obj.data
13 for i in range(6):
14 arm.rigify_colors.add()
16 arm.rigify_colors[0].name = "Root"
17 arm.rigify_colors[0].active = Color((0.5490196347236633, 1.0, 1.0))
18 arm.rigify_colors[0].normal = Color((0.4352940022945404, 0.18431399762630463, 0.4156860113143921))
19 arm.rigify_colors[0].select = Color((0.31372547149658203, 0.7843138575553894, 1.0))
20 arm.rigify_colors[0].standard_colors_lock = True
21 arm.rigify_colors[1].name = "IK"
22 arm.rigify_colors[1].active = Color((0.5490196347236633, 1.0, 1.0))
23 arm.rigify_colors[1].normal = Color((0.6039220094680786, 0.0, 0.0))
24 arm.rigify_colors[1].select = Color((0.31372547149658203, 0.7843138575553894, 1.0))
25 arm.rigify_colors[1].standard_colors_lock = True
26 arm.rigify_colors[2].name = "Specials"
27 arm.rigify_colors[2].active = Color((0.5490196347236633, 1.0, 1.0))
28 arm.rigify_colors[2].normal = Color((0.9568629860877991, 0.7882350087165833, 0.04705899953842163))
29 arm.rigify_colors[2].select = Color((0.31372547149658203, 0.7843138575553894, 1.0))
30 arm.rigify_colors[2].standard_colors_lock = True
31 arm.rigify_colors[3].name = "Tweak"
32 arm.rigify_colors[3].active = Color((0.5490196347236633, 1.0, 1.0))
33 arm.rigify_colors[3].normal = Color((0.03921600058674812, 0.21176500618457794, 0.5803920030593872))
34 arm.rigify_colors[3].select = Color((0.31372547149658203, 0.7843138575553894, 1.0))
35 arm.rigify_colors[3].standard_colors_lock = True
36 arm.rigify_colors[4].name = "FK"
37 arm.rigify_colors[4].active = Color((0.5490196347236633, 1.0, 1.0))
38 arm.rigify_colors[4].normal = Color((0.11764699965715408, 0.5686269998550415, 0.035294000059366226))
39 arm.rigify_colors[4].select = Color((0.31372547149658203, 0.7843138575553894, 1.0))
40 arm.rigify_colors[4].standard_colors_lock = True
41 arm.rigify_colors[5].name = "Extra"
42 arm.rigify_colors[5].active = Color((0.5490196347236633, 1.0, 1.0))
43 arm.rigify_colors[5].normal = Color((0.9686279892921448, 0.2509799897670746, 0.09411799907684326))
44 arm.rigify_colors[5].select = Color((0.31372547149658203, 0.7843138575553894, 1.0))
45 arm.rigify_colors[5].standard_colors_lock = True
47 for i in range(29):
48 arm.rigify_layers.add()
50 arm.rigify_layers[0].name = "Face"
51 arm.rigify_layers[0].row = 1
52 arm.rigify_layers[0].selset = False
53 arm.rigify_layers[0].group = 5
54 arm.rigify_layers[1].name = "Face (Tweak)"
55 arm.rigify_layers[1].row = 2
56 arm.rigify_layers[1].selset = False
57 arm.rigify_layers[1].group = 4
58 arm.rigify_layers[2].name = " "
59 arm.rigify_layers[2].row = 1
60 arm.rigify_layers[2].selset = False
61 arm.rigify_layers[2].group = 0
62 arm.rigify_layers[3].name = "Spine"
63 arm.rigify_layers[3].row = 3
64 arm.rigify_layers[3].selset = False
65 arm.rigify_layers[3].group = 3
66 arm.rigify_layers[4].name = "Spine (Tweak)"
67 arm.rigify_layers[4].row = 4
68 arm.rigify_layers[4].selset = False
69 arm.rigify_layers[4].group = 4
70 arm.rigify_layers[5].name = "Tail"
71 arm.rigify_layers[5].row = 5
72 arm.rigify_layers[5].selset = False
73 arm.rigify_layers[5].group = 6
74 arm.rigify_layers[6].name = "Fins.L"
75 arm.rigify_layers[6].row = 6
76 arm.rigify_layers[6].selset = False
77 arm.rigify_layers[6].group = 5
78 arm.rigify_layers[7].name = "Fins.L (Tweak)"
79 arm.rigify_layers[7].row = 7
80 arm.rigify_layers[7].selset = False
81 arm.rigify_layers[7].group = 4
82 arm.rigify_layers[8].name = "Fins.R"
83 arm.rigify_layers[8].row = 6
84 arm.rigify_layers[8].selset = False
85 arm.rigify_layers[8].group = 5
86 arm.rigify_layers[9].name = "Fins.R (Tweak)"
87 arm.rigify_layers[9].row = 7
88 arm.rigify_layers[9].selset = False
89 arm.rigify_layers[9].group = 4
90 arm.rigify_layers[10].name = "Fins"
91 arm.rigify_layers[10].row = 8
92 arm.rigify_layers[10].selset = False
93 arm.rigify_layers[10].group = 3
94 arm.rigify_layers[11].name = "Fins (Tweak)"
95 arm.rigify_layers[11].row = 9
96 arm.rigify_layers[11].selset = False
97 arm.rigify_layers[11].group = 4
98 arm.rigify_layers[12].name = " "
99 arm.rigify_layers[12].row = 1
100 arm.rigify_layers[12].selset = False
101 arm.rigify_layers[12].group = 0
102 arm.rigify_layers[13].name = " "
103 arm.rigify_layers[13].row = 1
104 arm.rigify_layers[13].selset = False
105 arm.rigify_layers[13].group = 6
106 arm.rigify_layers[14].name = " "
107 arm.rigify_layers[14].row = 1
108 arm.rigify_layers[14].selset = False
109 arm.rigify_layers[14].group = 0
110 arm.rigify_layers[15].name = " "
111 arm.rigify_layers[15].row = 1
112 arm.rigify_layers[15].selset = False
113 arm.rigify_layers[15].group = 0
114 arm.rigify_layers[16].name = " "
115 arm.rigify_layers[16].row = 1
116 arm.rigify_layers[16].selset = False
117 arm.rigify_layers[16].group = 0
118 arm.rigify_layers[17].name = " "
119 arm.rigify_layers[17].row = 1
120 arm.rigify_layers[17].selset = False
121 arm.rigify_layers[17].group = 0
122 arm.rigify_layers[18].name = " "
123 arm.rigify_layers[18].row = 1
124 arm.rigify_layers[18].selset = False
125 arm.rigify_layers[18].group = 0
126 arm.rigify_layers[19].name = " "
127 arm.rigify_layers[19].row = 1
128 arm.rigify_layers[19].selset = False
129 arm.rigify_layers[19].group = 0
130 arm.rigify_layers[20].name = " "
131 arm.rigify_layers[20].row = 1
132 arm.rigify_layers[20].selset = False
133 arm.rigify_layers[20].group = 0
134 arm.rigify_layers[21].name = " "
135 arm.rigify_layers[21].row = 1
136 arm.rigify_layers[21].selset = False
137 arm.rigify_layers[21].group = 0
138 arm.rigify_layers[22].name = " "
139 arm.rigify_layers[22].row = 1
140 arm.rigify_layers[22].selset = False
141 arm.rigify_layers[22].group = 0
142 arm.rigify_layers[23].name = " "
143 arm.rigify_layers[23].row = 1
144 arm.rigify_layers[23].selset = False
145 arm.rigify_layers[23].group = 0
146 arm.rigify_layers[24].name = " "
147 arm.rigify_layers[24].row = 1
148 arm.rigify_layers[24].selset = False
149 arm.rigify_layers[24].group = 0
150 arm.rigify_layers[25].name = " "
151 arm.rigify_layers[25].row = 1
152 arm.rigify_layers[25].selset = False
153 arm.rigify_layers[25].group = 0
154 arm.rigify_layers[26].name = " "
155 arm.rigify_layers[26].row = 1
156 arm.rigify_layers[26].selset = False
157 arm.rigify_layers[26].group = 0
158 arm.rigify_layers[27].name = " "
159 arm.rigify_layers[27].row = 1
160 arm.rigify_layers[27].selset = False
161 arm.rigify_layers[27].group = 0
162 arm.rigify_layers[28].name = "Root"
163 arm.rigify_layers[28].row = 14
164 arm.rigify_layers[28].selset = False
165 arm.rigify_layers[28].group = 1
167 bones = {}
169 bone = arm.edit_bones.new('spine.003')
170 bone.head[:] = -0.0000, 0.3182, 0.4031
171 bone.tail[:] = -0.0000, 0.0152, 0.3904
172 bone.roll = 0.0001
173 bone.use_connect = False
174 bones['spine.003'] = bone.name
175 bone = arm.edit_bones.new('spine.002')
176 bone.head[:] = -0.0000, 0.3182, 0.4031
177 bone.tail[:] = -0.0000, 0.7152, 0.4305
178 bone.roll = -0.0000
179 bone.use_connect = False
180 bone.parent = arm.edit_bones[bones['spine.003']]
181 bones['spine.002'] = bone.name
182 bone = arm.edit_bones.new('spine.001')
183 bone.head[:] = -0.0000, 0.7152, 0.4305
184 bone.tail[:] = -0.0000, 1.0816, 0.4540
185 bone.roll = -0.0000
186 bone.use_connect = True
187 bone.parent = arm.edit_bones[bones['spine.002']]
188 bones['spine.001'] = bone.name
189 bone = arm.edit_bones.new('spine.008')
190 bone.head[:] = -0.0000, 0.0152, 0.3904
191 bone.tail[:] = 0.0000, -0.3259, 0.3967
192 bone.roll = 0.0001
193 bone.use_connect = True
194 bone.parent = arm.edit_bones[bones['spine.003']]
195 bones['spine.008'] = bone.name
196 bone = arm.edit_bones.new('spine')
197 bone.head[:] = -0.0000, 1.0816, 0.4540
198 bone.tail[:] = -0.0000, 1.3362, 0.4776
199 bone.roll = 0.0000
200 bone.use_connect = True
201 bone.parent = arm.edit_bones[bones['spine.001']]
202 bones['spine'] = bone.name
203 bone = arm.edit_bones.new('mid_fin.Top')
204 bone.head[:] = 0.0000, 0.7296, 0.5396
205 bone.tail[:] = 0.0000, 0.7709, 0.6351
206 bone.roll = 0.0000
207 bone.use_connect = False
208 bone.parent = arm.edit_bones[bones['spine.001']]
209 bones['mid_fin.Top'] = bone.name
210 bone = arm.edit_bones.new('mid_fin.Bot')
211 bone.head[:] = 0.0000, 0.7296, 0.3505
212 bone.tail[:] = 0.0000, 0.8233, 0.2684
213 bone.roll = 1.5708
214 bone.use_connect = False
215 bone.parent = arm.edit_bones[bones['spine.001']]
216 bones['mid_fin.Bot'] = bone.name
217 bone = arm.edit_bones.new('spine.004')
218 bone.head[:] = 0.0000, -0.3259, 0.3967
219 bone.tail[:] = 0.0000, -0.5947, 0.4044
220 bone.roll = -0.0001
221 bone.use_connect = True
222 bone.parent = arm.edit_bones[bones['spine.008']]
223 bones['spine.004'] = bone.name
224 bone = arm.edit_bones.new('chest_fin.Bot.L')
225 bone.head[:] = 0.0889, 0.2605, 0.2866
226 bone.tail[:] = 0.1731, 0.3299, 0.1901
227 bone.roll = -2.3171
228 bone.use_connect = False
229 bone.parent = arm.edit_bones[bones['spine.008']]
230 bones['chest_fin.Bot.L'] = bone.name
231 bone = arm.edit_bones.new('chest_fin.Bot.R')
232 bone.head[:] = -0.0889, 0.2605, 0.2866
233 bone.tail[:] = -0.1731, 0.3299, 0.1901
234 bone.roll = 2.3171
235 bone.use_connect = False
236 bone.parent = arm.edit_bones[bones['spine.008']]
237 bones['chest_fin.Bot.R'] = bone.name
238 bone = arm.edit_bones.new('back_fin.T.Bk')
239 bone.head[:] = 0.0000, 1.2501, 0.5345
240 bone.tail[:] = 0.0000, 1.5211, 0.7594
241 bone.roll = 0.0000
242 bone.use_connect = False
243 bone.parent = arm.edit_bones[bones['spine']]
244 bones['back_fin.T.Bk'] = bone.name
245 bone = arm.edit_bones.new('back_fin.B.Bk')
246 bone.head[:] = 0.0000, 1.2305, 0.4158
247 bone.tail[:] = 0.0000, 1.3289, 0.2452
248 bone.roll = 0.0000
249 bone.use_connect = False
250 bone.parent = arm.edit_bones[bones['spine']]
251 bones['back_fin.B.Bk'] = bone.name
252 bone = arm.edit_bones.new('spine.005')
253 bone.head[:] = 0.0000, -0.5947, 0.4044
254 bone.tail[:] = 0.0000, -1.2084, 0.4328
255 bone.roll = 0.0000
256 bone.use_connect = True
257 bone.parent = arm.edit_bones[bones['spine.004']]
258 bones['spine.005'] = bone.name
259 bone = arm.edit_bones.new('top_fin')
260 bone.head[:] = 0.0000, -0.2777, 0.5550
261 bone.tail[:] = 0.0000, -0.1962, 0.7053
262 bone.roll = 0.0000
263 bone.use_connect = False
264 bone.parent = arm.edit_bones[bones['spine.004']]
265 bones['top_fin'] = bone.name
266 bone = arm.edit_bones.new('back_fin.T.001.Bk')
267 bone.head[:] = 0.0000, 1.5211, 0.7594
268 bone.tail[:] = 0.0000, 1.7667, 0.9633
269 bone.roll = 0.0000
270 bone.use_connect = True
271 bone.parent = arm.edit_bones[bones['back_fin.T.Bk']]
272 bones['back_fin.T.001.Bk'] = bone.name
273 bone = arm.edit_bones.new('back_fin.B.001.Bk')
274 bone.head[:] = 0.0000, 1.3289, 0.2452
275 bone.tail[:] = 0.0000, 1.3818, 0.1513
276 bone.roll = 0.0000
277 bone.use_connect = True
278 bone.parent = arm.edit_bones[bones['back_fin.B.Bk']]
279 bones['back_fin.B.001.Bk'] = bone.name
280 bone = arm.edit_bones.new('spine.006')
281 bone.head[:] = 0.0000, -1.2084, 0.4328
282 bone.tail[:] = 0.0000, -1.5634, 0.4275
283 bone.roll = -0.0000
284 bone.use_connect = False
285 bone.parent = arm.edit_bones[bones['spine.005']]
286 bones['spine.006'] = bone.name
287 bone = arm.edit_bones.new('shoulder.L')
288 bone.head[:] = 0.0729, -0.9648, 0.3756
289 bone.tail[:] = 0.2649, -0.9648, 0.3157
290 bone.roll = 3.4558
291 bone.use_connect = False
292 bone.parent = arm.edit_bones[bones['spine.005']]
293 bones['shoulder.L'] = bone.name
294 bone = arm.edit_bones.new('shoulder.R')
295 bone.head[:] = -0.0729, -0.9648, 0.3756
296 bone.tail[:] = -0.2649, -0.9648, 0.3157
297 bone.roll = -3.4558
298 bone.use_connect = False
299 bone.parent = arm.edit_bones[bones['spine.005']]
300 bones['shoulder.R'] = bone.name
301 bone = arm.edit_bones.new('top_fin.001')
302 bone.head[:] = 0.0000, -0.1962, 0.7053
303 bone.tail[:] = 0.0000, -0.1362, 0.8158
304 bone.roll = 0.0000
305 bone.use_connect = True
306 bone.parent = arm.edit_bones[bones['top_fin']]
307 bones['top_fin.001'] = bone.name
308 bone = arm.edit_bones.new('back_fin.T.002.Bk')
309 bone.head[:] = 0.0000, 1.7667, 0.9633
310 bone.tail[:] = 0.0000, 1.9489, 1.1145
311 bone.roll = 0.0000
312 bone.use_connect = True
313 bone.parent = arm.edit_bones[bones['back_fin.T.001.Bk']]
314 bones['back_fin.T.002.Bk'] = bone.name
315 bone = arm.edit_bones.new('spine.007')
316 bone.head[:] = 0.0000, -1.5634, 0.4275
317 bone.tail[:] = 0.0000, -2.0661, 0.4364
318 bone.roll = 0.0000
319 bone.use_connect = True
320 bone.parent = arm.edit_bones[bones['spine.006']]
321 bones['spine.007'] = bone.name
322 bone = arm.edit_bones.new('side_fin.L')
323 bone.head[:] = 0.2140, -0.9624, 0.2213
324 bone.tail[:] = 0.5220, -0.9078, -0.1343
325 bone.roll = -2.3170
326 bone.use_connect = False
327 bone.parent = arm.edit_bones[bones['shoulder.L']]
328 bones['side_fin.L'] = bone.name
329 bone = arm.edit_bones.new('side_fin.R')
330 bone.head[:] = -0.2140, -0.9624, 0.2213
331 bone.tail[:] = -0.5220, -0.9078, -0.1343
332 bone.roll = 2.3170
333 bone.use_connect = False
334 bone.parent = arm.edit_bones[bones['shoulder.R']]
335 bones['side_fin.R'] = bone.name
336 bone = arm.edit_bones.new('eye.L')
337 bone.head[:] = 0.1405, -1.6860, 0.4161
338 bone.tail[:] = 0.3684, -1.6810, 0.4156
339 bone.roll = 3.1352
340 bone.use_connect = False
341 bone.parent = arm.edit_bones[bones['spine.007']]
342 bones['eye.L'] = bone.name
343 bone = arm.edit_bones.new('eye.R')
344 bone.head[:] = -0.1405, -1.6860, 0.4161
345 bone.tail[:] = -0.3684, -1.6810, 0.4156
346 bone.roll = -3.1352
347 bone.use_connect = False
348 bone.parent = arm.edit_bones[bones['spine.007']]
349 bones['eye.R'] = bone.name
350 bone = arm.edit_bones.new('jaw.master')
351 bone.head[:] = -0.0000, -1.5791, 0.2788
352 bone.tail[:] = 0.0000, -1.9421, 0.3386
353 bone.roll = 0.0000
354 bone.use_connect = False
355 bone.parent = arm.edit_bones[bones['spine.007']]
356 bones['jaw.master'] = bone.name
357 bone = arm.edit_bones.new('side_fin.L.001')
358 bone.head[:] = 0.5220, -0.9078, -0.1343
359 bone.tail[:] = 0.7928, -0.7598, -0.4802
360 bone.roll = -2.2826
361 bone.use_connect = True
362 bone.parent = arm.edit_bones[bones['side_fin.L']]
363 bones['side_fin.L.001'] = bone.name
364 bone = arm.edit_bones.new('side_fin.R.001')
365 bone.head[:] = -0.5220, -0.9078, -0.1343
366 bone.tail[:] = -0.7928, -0.7598, -0.4802
367 bone.roll = 2.2826
368 bone.use_connect = True
369 bone.parent = arm.edit_bones[bones['side_fin.R']]
370 bones['side_fin.R.001'] = bone.name
371 bone = arm.edit_bones.new('jaw')
372 bone.head[:] = -0.0000, -1.5791, 0.2788
373 bone.tail[:] = 0.0000, -1.7326, 0.3041
374 bone.roll = 0.0000
375 bone.use_connect = False
376 bone.parent = arm.edit_bones[bones['jaw.master']]
377 bones['jaw'] = bone.name
378 bone = arm.edit_bones.new('jaw.002.L')
379 bone.head[:] = 0.0891, -1.5791, 0.2894
380 bone.tail[:] = 0.1110, -1.7198, 0.3129
381 bone.roll = 1.4894
382 bone.use_connect = False
383 bone.parent = arm.edit_bones[bones['jaw.master']]
384 bones['jaw.002.L'] = bone.name
385 bone = arm.edit_bones.new('jaw.002.R')
386 bone.head[:] = -0.0891, -1.5791, 0.2894
387 bone.tail[:] = -0.1110, -1.7198, 0.3129
388 bone.roll = -1.4894
389 bone.use_connect = False
390 bone.parent = arm.edit_bones[bones['jaw.master']]
391 bones['jaw.002.R'] = bone.name
392 bone = arm.edit_bones.new('jaw.001')
393 bone.head[:] = 0.0000, -1.7326, 0.3041
394 bone.tail[:] = 0.0000, -1.8860, 0.3294
395 bone.roll = 0.0000
396 bone.use_connect = True
397 bone.parent = arm.edit_bones[bones['jaw']]
398 bones['jaw.001'] = bone.name
399 bone = arm.edit_bones.new('jaw.003.L')
400 bone.head[:] = 0.1110, -1.7198, 0.3129
401 bone.tail[:] = 0.1260, -1.8159, 0.3326
402 bone.roll = 1.2807
403 bone.use_connect = True
404 bone.parent = arm.edit_bones[bones['jaw.002.L']]
405 bones['jaw.003.L'] = bone.name
406 bone = arm.edit_bones.new('jaw.003.R')
407 bone.head[:] = -0.1110, -1.7198, 0.3129
408 bone.tail[:] = -0.1260, -1.8159, 0.3326
409 bone.roll = -1.2807
410 bone.use_connect = True
411 bone.parent = arm.edit_bones[bones['jaw.002.R']]
412 bones['jaw.003.R'] = bone.name
414 bpy.ops.object.mode_set(mode='OBJECT')
415 pbone = obj.pose.bones[bones['spine.002']]
416 pbone.rigify_type = 'spines.basic_tail'
417 pbone.lock_location = (False, False, False)
418 pbone.lock_rotation = (False, False, False)
419 pbone.lock_rotation_w = False
420 pbone.lock_scale = (False, False, False)
421 pbone.rotation_mode = 'QUATERNION'
422 pbone.bone.layers = [False, False, False, False, False, True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]
423 try:
424 pbone.rigify_parameters.tweak_layers = [False, False, False, False, True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]
425 except AttributeError:
426 pass
427 try:
428 pbone.rigify_parameters.connect_chain = True
429 except AttributeError:
430 pass
431 try:
432 pbone.rigify_parameters.copy_rotation_axes = [True, False, True]
433 except AttributeError:
434 pass
435 pbone = obj.pose.bones[bones['spine.003']]
436 pbone.rigify_type = 'spines.basic_spine'
437 pbone.lock_location = (False, False, False)
438 pbone.lock_rotation = (False, False, False)
439 pbone.lock_rotation_w = False
440 pbone.lock_scale = (False, False, False)
441 pbone.rotation_mode = 'QUATERNION'
442 pbone.bone.layers = [False, False, False, True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]
443 try:
444 pbone.rigify_parameters.tweak_layers = [False, False, False, False, True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]
445 except AttributeError:
446 pass
447 try:
448 pbone.rigify_parameters.fk_layers = [False, False, False, False, True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]
449 except AttributeError:
450 pass
451 pbone = obj.pose.bones[bones['spine.001']]
452 pbone.rigify_type = ''
453 pbone.lock_location = (False, False, False)
454 pbone.lock_rotation = (False, False, False)
455 pbone.lock_rotation_w = False
456 pbone.lock_scale = (False, False, False)
457 pbone.rotation_mode = 'QUATERNION'
458 pbone.bone.layers = [False, False, False, False, False, True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]
459 pbone = obj.pose.bones[bones['spine.008']]
460 pbone.rigify_type = ''
461 pbone.lock_location = (False, False, False)
462 pbone.lock_rotation = (False, False, False)
463 pbone.lock_rotation_w = False
464 pbone.lock_scale = (False, False, False)
465 pbone.rotation_mode = 'QUATERNION'
466 pbone.bone.layers = [False, False, False, True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]
467 pbone = obj.pose.bones[bones['spine']]
468 pbone.rigify_type = ''
469 pbone.lock_location = (False, False, False)
470 pbone.lock_rotation = (False, False, False)
471 pbone.lock_rotation_w = False
472 pbone.lock_scale = (False, False, False)
473 pbone.rotation_mode = 'QUATERNION'
474 pbone.bone.layers = [False, False, False, False, False, True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]
475 pbone = obj.pose.bones[bones['mid_fin.Top']]
476 pbone.rigify_type = ''
477 pbone.lock_location = (False, False, False)
478 pbone.lock_rotation = (False, False, False)
479 pbone.lock_rotation_w = False
480 pbone.lock_scale = (False, False, False)
481 pbone.rotation_mode = 'QUATERNION'
482 pbone.bone.layers = [False, False, False, False, False, False, False, False, False, False, True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]
483 pbone = obj.pose.bones[bones['mid_fin.Bot']]
484 pbone.rigify_type = ''
485 pbone.lock_location = (False, False, False)
486 pbone.lock_rotation = (False, False, False)
487 pbone.lock_rotation_w = False
488 pbone.lock_scale = (False, False, False)
489 pbone.rotation_mode = 'QUATERNION'
490 pbone.bone.layers = [False, False, False, False, False, False, True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]
491 pbone = obj.pose.bones[bones['spine.004']]
492 pbone.rigify_type = ''
493 pbone.lock_location = (False, False, False)
494 pbone.lock_rotation = (False, False, False)
495 pbone.lock_rotation_w = False
496 pbone.lock_scale = (False, False, False)
497 pbone.rotation_mode = 'QUATERNION'
498 pbone.bone.layers = [False, False, False, True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]
499 pbone = obj.pose.bones[bones['chest_fin.Bot.L']]
500 pbone.rigify_type = 'basic.super_copy'
501 pbone.lock_location = (False, False, False)
502 pbone.lock_rotation = (False, False, False)
503 pbone.lock_rotation_w = False
504 pbone.lock_scale = (False, False, False)
505 pbone.rotation_mode = 'QUATERNION'
506 pbone.bone.layers = [False, False, False, False, False, False, False, False, False, False, True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]
507 try:
508 pbone.rigify_parameters.tweak_layers = [False, False, False, False, True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]
509 except AttributeError:
510 pass
511 pbone = obj.pose.bones[bones['chest_fin.Bot.R']]
512 pbone.rigify_type = 'basic.super_copy'
513 pbone.lock_location = (False, False, False)
514 pbone.lock_rotation = (False, False, False)
515 pbone.lock_rotation_w = False
516 pbone.lock_scale = (False, False, False)
517 pbone.rotation_mode = 'QUATERNION'
518 pbone.bone.layers = [False, False, False, False, False, False, False, False, False, False, True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]
519 try:
520 pbone.rigify_parameters.tweak_layers = [False, False, False, False, False, True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]
521 except AttributeError:
522 pass
523 pbone = obj.pose.bones[bones['back_fin.T.Bk']]
524 pbone.rigify_type = 'limbs.super_finger'
525 pbone.lock_location = (False, False, False)
526 pbone.lock_rotation = (False, False, False)
527 pbone.lock_rotation_w = False
528 pbone.lock_scale = (False, False, False)
529 pbone.rotation_mode = 'QUATERNION'
530 pbone.bone.layers = [False, False, False, False, False, False, False, False, False, False, True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]
531 try:
532 pbone.rigify_parameters.tweak_layers = [False, False, False, False, False, False, False, True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]
533 except AttributeError:
534 pass
535 try:
536 pbone.rigify_parameters.primary_rotation_axis = "Z"
537 except AttributeError:
538 pass
539 pbone = obj.pose.bones[bones['back_fin.B.Bk']]
540 pbone.rigify_type = 'limbs.super_finger'
541 pbone.lock_location = (False, False, False)
542 pbone.lock_rotation = (False, False, False)
543 pbone.lock_rotation_w = False
544 pbone.lock_scale = (False, False, False)
545 pbone.rotation_mode = 'QUATERNION'
546 pbone.bone.layers = [False, False, False, False, False, False, False, False, False, False, True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]
547 try:
548 pbone.rigify_parameters.tweak_layers = [False, False, False, False, False, False, False, True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]
549 except AttributeError:
550 pass
551 try:
552 pbone.rigify_parameters.primary_rotation_axis = "Z"
553 except AttributeError:
554 pass
555 pbone = obj.pose.bones[bones['spine.005']]
556 pbone.rigify_type = ''
557 pbone.lock_location = (False, False, False)
558 pbone.lock_rotation = (False, False, False)
559 pbone.lock_rotation_w = False
560 pbone.lock_scale = (False, False, False)
561 pbone.rotation_mode = 'QUATERNION'
562 pbone.bone.layers = [False, False, False, True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]
563 pbone = obj.pose.bones[bones['top_fin']]
564 pbone.rigify_type = 'limbs.simple_tentacle'
565 pbone.lock_location = (False, False, False)
566 pbone.lock_rotation = (False, False, False)
567 pbone.lock_rotation_w = False
568 pbone.lock_scale = (False, False, False)
569 pbone.rotation_mode = 'QUATERNION'
570 pbone.bone.layers = [False, False, False, False, False, False, False, False, False, False, True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]
571 try:
572 pbone.rigify_parameters.tweak_layers = [False, False, False, False, False, False, False, False, False, False, False, True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]
573 except AttributeError:
574 pass
575 pbone = obj.pose.bones[bones['back_fin.T.001.Bk']]
576 pbone.rigify_type = ''
577 pbone.lock_location = (False, False, False)
578 pbone.lock_rotation = (False, False, False)
579 pbone.lock_rotation_w = False
580 pbone.lock_scale = (False, False, False)
581 pbone.rotation_mode = 'QUATERNION'
582 pbone.bone.layers = [False, False, False, False, False, False, False, False, False, False, True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]
583 pbone = obj.pose.bones[bones['back_fin.B.001.Bk']]
584 pbone.rigify_type = ''
585 pbone.lock_location = (False, False, False)
586 pbone.lock_rotation = (False, False, False)
587 pbone.lock_rotation_w = False
588 pbone.lock_scale = (False, False, False)
589 pbone.rotation_mode = 'QUATERNION'
590 pbone.bone.layers = [False, False, False, False, False, False, False, False, False, False, True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]
591 pbone = obj.pose.bones[bones['spine.006']]
592 pbone.rigify_type = 'spines.super_head'
593 pbone.lock_location = (False, False, False)
594 pbone.lock_rotation = (False, False, False)
595 pbone.lock_rotation_w = False
596 pbone.lock_scale = (False, False, False)
597 pbone.rotation_mode = 'QUATERNION'
598 pbone.bone.layers = [False, False, False, True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]
599 try:
600 pbone.rigify_parameters.tweak_layers = [False, False, False, False, True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]
601 except AttributeError:
602 pass
603 try:
604 pbone.rigify_parameters.connect_chain = True
605 except AttributeError:
606 pass
607 pbone = obj.pose.bones[bones['shoulder.L']]
608 pbone.rigify_type = 'basic.super_copy'
609 pbone.lock_location = (False, False, False)
610 pbone.lock_rotation = (False, False, False)
611 pbone.lock_rotation_w = False
612 pbone.lock_scale = (False, False, False)
613 pbone.rotation_mode = 'QUATERNION'
614 pbone.bone.layers = [False, False, False, True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]
615 try:
616 pbone.rigify_parameters.make_widget = False
617 except AttributeError:
618 pass
619 pbone = obj.pose.bones[bones['shoulder.R']]
620 pbone.rigify_type = 'basic.super_copy'
621 pbone.lock_location = (False, False, False)
622 pbone.lock_rotation = (False, False, False)
623 pbone.lock_rotation_w = False
624 pbone.lock_scale = (False, False, False)
625 pbone.rotation_mode = 'QUATERNION'
626 pbone.bone.layers = [False, False, False, True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]
627 try:
628 pbone.rigify_parameters.make_widget = False
629 except AttributeError:
630 pass
631 pbone = obj.pose.bones[bones['top_fin.001']]
632 pbone.rigify_type = ''
633 pbone.lock_location = (False, False, False)
634 pbone.lock_rotation = (False, False, False)
635 pbone.lock_rotation_w = False
636 pbone.lock_scale = (False, False, False)
637 pbone.rotation_mode = 'QUATERNION'
638 pbone.bone.layers = [False, False, False, False, False, False, False, False, False, False, True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]
639 pbone = obj.pose.bones[bones['back_fin.T.002.Bk']]
640 pbone.rigify_type = ''
641 pbone.lock_location = (False, False, False)
642 pbone.lock_rotation = (False, False, False)
643 pbone.lock_rotation_w = False
644 pbone.lock_scale = (False, False, False)
645 pbone.rotation_mode = 'QUATERNION'
646 pbone.bone.layers = [False, False, False, False, False, False, False, False, False, False, True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]
647 pbone = obj.pose.bones[bones['spine.007']]
648 pbone.rigify_type = ''
649 pbone.lock_location = (False, False, False)
650 pbone.lock_rotation = (False, False, False)
651 pbone.lock_rotation_w = False
652 pbone.lock_scale = (False, False, False)
653 pbone.rotation_mode = 'QUATERNION'
654 pbone.bone.layers = [False, False, False, True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]
655 pbone = obj.pose.bones[bones['side_fin.L']]
656 pbone.rigify_type = 'limbs.simple_tentacle'
657 pbone.lock_location = (False, False, False)
658 pbone.lock_rotation = (False, False, False)
659 pbone.lock_rotation_w = False
660 pbone.lock_scale = (False, False, False)
661 pbone.rotation_mode = 'QUATERNION'
662 pbone.bone.layers = [False, False, False, False, False, False, True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]
663 try:
664 pbone.rigify_parameters.tweak_layers = [False, False, False, False, False, False, False, True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]
665 except AttributeError:
666 pass
667 try:
668 pbone.rigify_parameters.copy_rotation_axes = [True, False, False]
669 except AttributeError:
670 pass
671 pbone = obj.pose.bones[bones['side_fin.R']]
672 pbone.rigify_type = 'limbs.simple_tentacle'
673 pbone.lock_location = (False, False, False)
674 pbone.lock_rotation = (False, False, False)
675 pbone.lock_rotation_w = False
676 pbone.lock_scale = (False, False, False)
677 pbone.rotation_mode = 'QUATERNION'
678 pbone.bone.layers = [False, False, False, False, False, False, False, False, True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]
679 try:
680 pbone.rigify_parameters.tweak_layers = [False, False, False, False, False, False, False, False, False, True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]
681 except AttributeError:
682 pass
683 try:
684 pbone.rigify_parameters.copy_rotation_axes = [True, False, False]
685 except AttributeError:
686 pass
687 pbone = obj.pose.bones[bones['eye.L']]
688 pbone.rigify_type = 'basic.super_copy'
689 pbone.lock_location = (False, False, False)
690 pbone.lock_rotation = (False, False, False)
691 pbone.lock_rotation_w = False
692 pbone.lock_scale = (False, False, False)
693 pbone.rotation_mode = 'QUATERNION'
694 pbone.bone.layers = [True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]
695 pbone = obj.pose.bones[bones['eye.R']]
696 pbone.rigify_type = 'basic.super_copy'
697 pbone.lock_location = (False, False, False)
698 pbone.lock_rotation = (False, False, False)
699 pbone.lock_rotation_w = False
700 pbone.lock_scale = (False, False, False)
701 pbone.rotation_mode = 'QUATERNION'
702 pbone.bone.layers = [True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]
703 pbone = obj.pose.bones[bones['jaw.master']]
704 pbone.rigify_type = 'basic.super_copy'
705 pbone.lock_location = (False, False, False)
706 pbone.lock_rotation = (False, False, False)
707 pbone.lock_rotation_w = False
708 pbone.lock_scale = (False, False, False)
709 pbone.rotation_mode = 'QUATERNION'
710 pbone.bone.layers = [True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]
711 try:
712 pbone.rigify_parameters.make_widget = False
713 except AttributeError:
714 pass
715 try:
716 pbone.rigify_parameters.make_deform = False
717 except AttributeError:
718 pass
719 pbone = obj.pose.bones[bones['side_fin.L.001']]
720 pbone.rigify_type = ''
721 pbone.lock_location = (False, False, False)
722 pbone.lock_rotation = (False, False, False)
723 pbone.lock_rotation_w = False
724 pbone.lock_scale = (False, False, False)
725 pbone.rotation_mode = 'QUATERNION'
726 pbone.bone.layers = [False, False, False, False, False, False, True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]
727 pbone = obj.pose.bones[bones['side_fin.R.001']]
728 pbone.rigify_type = ''
729 pbone.lock_location = (False, False, False)
730 pbone.lock_rotation = (False, False, False)
731 pbone.lock_rotation_w = False
732 pbone.lock_scale = (False, False, False)
733 pbone.rotation_mode = 'QUATERNION'
734 pbone.bone.layers = [False, False, False, False, False, False, False, False, True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]
735 pbone = obj.pose.bones[bones['jaw']]
736 pbone.rigify_type = 'limbs.simple_tentacle'
737 pbone.lock_location = (False, False, False)
738 pbone.lock_rotation = (False, False, False)
739 pbone.lock_rotation_w = False
740 pbone.lock_scale = (False, False, False)
741 pbone.rotation_mode = 'QUATERNION'
742 pbone.bone.layers = [True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]
743 pbone = obj.pose.bones[bones['jaw.002.L']]
744 pbone.rigify_type = 'limbs.simple_tentacle'
745 pbone.lock_location = (False, False, False)
746 pbone.lock_rotation = (False, False, False)
747 pbone.lock_rotation_w = False
748 pbone.lock_scale = (False, False, False)
749 pbone.rotation_mode = 'QUATERNION'
750 pbone.bone.layers = [True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]
751 pbone = obj.pose.bones[bones['jaw.002.R']]
752 pbone.rigify_type = 'limbs.simple_tentacle'
753 pbone.lock_location = (False, False, False)
754 pbone.lock_rotation = (False, False, False)
755 pbone.lock_rotation_w = False
756 pbone.lock_scale = (False, False, False)
757 pbone.rotation_mode = 'QUATERNION'
758 pbone.bone.layers = [True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]
759 pbone = obj.pose.bones[bones['jaw.001']]
760 pbone.rigify_type = ''
761 pbone.lock_location = (False, False, False)
762 pbone.lock_rotation = (False, False, False)
763 pbone.lock_rotation_w = False
764 pbone.lock_scale = (False, False, False)
765 pbone.rotation_mode = 'QUATERNION'
766 pbone.bone.layers = [True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]
767 pbone = obj.pose.bones[bones['jaw.003.L']]
768 pbone.rigify_type = ''
769 pbone.lock_location = (False, False, False)
770 pbone.lock_rotation = (False, False, False)
771 pbone.lock_rotation_w = False
772 pbone.lock_scale = (False, False, False)
773 pbone.rotation_mode = 'QUATERNION'
774 pbone.bone.layers = [True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]
775 pbone = obj.pose.bones[bones['jaw.003.R']]
776 pbone.rigify_type = ''
777 pbone.lock_location = (False, False, False)
778 pbone.lock_rotation = (False, False, False)
779 pbone.lock_rotation_w = False
780 pbone.lock_scale = (False, False, False)
781 pbone.rotation_mode = 'QUATERNION'
782 pbone.bone.layers = [True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]
784 bpy.ops.object.mode_set(mode='EDIT')
785 for bone in arm.edit_bones:
786 bone.select = False
787 bone.select_head = False
788 bone.select_tail = False
789 for b in bones:
790 bone = arm.edit_bones[bones[b]]
791 bone.select = True
792 bone.select_head = True
793 bone.select_tail = True
794 bone.bbone_x = bone.bbone_z = bone.length * 0.05
795 arm.edit_bones.active = bone
797 arm.layers = [(x in [0, 3, 5, 6, 8, 10]) for x in range(32)]
799 return bones
801 if __name__ == "__main__":
802 create(bpy.context.active_object)