@@ -336,15 +336,15 @@ def create_controls(self):
336
336
mid_index = int ((self .lid_len + 1 )/ 2 )
337
337
338
338
top_lid_master = copy_bone (self .obj , self .bones ['ctrl' ][top_chain ][0 ])
339
- edit_bones [top_lid_master ].length *= 1.5
339
+ # edit_bones[top_lid_master].length *= 1.5
340
340
self .bones ['eye_ctrl' ]['top_lid_master' ] = top_lid_master
341
341
mid_bone_1 = edit_bones [self .bones ['ctrl' ][top_chain ][mid_index - 1 ]]
342
342
mid_bone_2 = edit_bones [self .bones ['ctrl' ][top_chain ][mid_index ]]
343
343
put_bone (self .obj , top_lid_master , (mid_bone_1 .head + mid_bone_2 .head )/ 2 )
344
344
align_bone_y_axis (self .obj , top_lid_master , axis )
345
345
346
346
bottom_lid_master = copy_bone (self .obj , self .bones ['ctrl' ][bottom_chain ][0 ])
347
- edit_bones [bottom_lid_master ].length *= 1.5
347
+ # edit_bones[bottom_lid_master].length *= 1.5
348
348
self .bones ['eye_ctrl' ]['bottom_lid_master' ] = bottom_lid_master
349
349
mid_bone_1 = edit_bones [self .bones ['ctrl' ][bottom_chain ][mid_index - 1 ]]
350
350
mid_bone_2 = edit_bones [self .bones ['ctrl' ][bottom_chain ][mid_index ]]
@@ -355,8 +355,8 @@ def create_controls(self):
355
355
mid_index = int ((self .lid_len ) / 2 )
356
356
top_lid_master = self .bones ['ctrl' ][top_chain ][mid_index ]
357
357
bottom_lid_master = self .bones ['ctrl' ][bottom_chain ][mid_index ]
358
- edit_bones [top_lid_master ].length *= 1.5
359
- edit_bones [bottom_lid_master ].length *= 1.5
358
+ # edit_bones[top_lid_master].length *= 1.5
359
+ # edit_bones[bottom_lid_master].length *= 1.5
360
360
self .bones ['eye_ctrl' ]['top_lid_master' ] = top_lid_master
361
361
self .bones ['eye_ctrl' ]['bottom_lid_master' ] = bottom_lid_master
362
362
@@ -512,11 +512,11 @@ def make_constraints(self):
512
512
central_ctrl_top = self .get_ctrl_by_index (strip_org (self .lid_bones ['top' ][0 ]), i )
513
513
owner = pose_bones [central_ctrl_top ]
514
514
subtarget = tip
515
- make_constraints_from_string (owner , self .obj , subtarget , "CL0.5LL0 .0" )
515
+ make_constraints_from_string (owner , self .obj , subtarget , "CL0.5LLO0 .0" )
516
516
central_ctrl_bottom = self .get_ctrl_by_index (strip_org (self .lid_bones ['bottom' ][0 ]), i )
517
517
owner = pose_bones [central_ctrl_bottom ]
518
518
subtarget = tip
519
- make_constraints_from_string (owner , self .obj , subtarget , "CL0.5LL0 .0" )
519
+ make_constraints_from_string (owner , self .obj , subtarget , "CL0.5LLO0 .0" )
520
520
influence = 0.6
521
521
j = 1
522
522
while True :
@@ -549,12 +549,12 @@ def make_constraints(self):
549
549
top_lid_master = self .bones ['eye_ctrl' ]['top_lid_master' ]
550
550
owner = pose_bones [top_lid_master ]
551
551
subtarget = tip
552
- make_constraints_from_string (owner , self .obj , subtarget , "CL0.5LL0 .0" )
552
+ make_constraints_from_string (owner , self .obj , subtarget , "CL0.5LLO0 .0" )
553
553
554
554
bottom_lid_master = self .bones ['eye_ctrl' ]['bottom_lid_master' ]
555
555
owner = pose_bones [bottom_lid_master ]
556
556
subtarget = tip
557
- make_constraints_from_string (owner , self .obj , subtarget , "CL0.5LL0 .0" )
557
+ make_constraints_from_string (owner , self .obj , subtarget , "CL0.5LLO0 .0" )
558
558
559
559
influence = 0.6
560
560
i = int ((self .lid_len + 1 )/ 2 )
@@ -741,12 +741,12 @@ def create_widgets(self):
741
741
# top lid master
742
742
if 'top_lid_master' in self .bones ['eye_ctrl' ]:
743
743
top_lid_master = self .bones ['eye_ctrl' ]['top_lid_master' ]
744
- create_sphere_widget (self .obj , top_lid_master )
744
+ create_cube_widget (self .obj , top_lid_master )
745
745
746
746
# bottom lid master
747
747
if 'bottom_lid_master' in self .bones ['eye_ctrl' ]:
748
748
bottom_lid_master = self .bones ['eye_ctrl' ]['bottom_lid_master' ]
749
- create_sphere_widget (self .obj , bottom_lid_master )
749
+ create_cube_widget (self .obj , bottom_lid_master )
750
750
751
751
if 'common' in self .bones ['eye_ctrl' ]:
752
752
common_ctrl = self .bones ['eye_ctrl' ]['common' ]
0 commit comments