Exemplo n.º 1
0
    def create_widgets(self):

        bpy.ops.object.mode_set(mode='OBJECT')
        pose_bones = self.obj.pose.bones

        top_main = self.bones['mouth_ctrl']['top'][0]
        corner_1 = self.bones['mouth_ctrl']['corners'][0]
        corner_2 = self.bones['mouth_ctrl']['corners'][1]
        bottom_main = self.bones['mouth_ctrl']['bottom'][0]

        create_cube_widget(self.obj, top_main)
        create_cube_widget(self.obj, corner_1)
        create_cube_widget(self.obj, corner_2)
        create_cube_widget(self.obj, bottom_main)

        jaw_ctrl = self.bones['jaw_ctrl']['jaw']
        create_jaw_widget(self.obj, jaw_ctrl)

        main_mouth_ctrl = self.bones['mouth_ctrl']['main']
        cluster = []

        for b in self.flatten(self.mouth_bones):
            cluster.append(pose_bones[b].bone.head)

        create_widget_from_cluster(self.obj, main_mouth_ctrl, cluster)

        super().create_widgets()
Exemplo n.º 2
0
    def create_widgets(self):

        bpy.ops.object.mode_set(mode='OBJECT')

        tongue_master = self.bones['tongue_ctrl']['tongue_master']
        create_jaw_widget(self.obj, tongue_master)

        super().create_widgets()
    def create_widgets(self):

        top_main = self.get_ctrl_by_index(
            strip_org(self.mouth_bones['top'][0]), 0)
        corner_1 = self.get_ctrl_by_index(
            strip_org(self.mouth_bones['top'][0]), -1)
        corner_2 = self.get_ctrl_by_index(
            strip_org(self.mouth_bones['top'][1]), -1)
        bottom_main = self.get_ctrl_by_index(
            strip_org(self.mouth_bones['bottom'][0]), 0)

        create_cube_widget(self.obj, top_main)
        create_cube_widget(self.obj, corner_1)
        create_cube_widget(self.obj, corner_2)
        create_cube_widget(self.obj, bottom_main)

        jaw_ctrl = self.bones['jaw_ctrl']['jaw']
        create_jaw_widget(self.obj, jaw_ctrl)

        super().create_widgets()
Exemplo n.º 4
0
 def make_control_widgets(self):
     create_jaw_widget(self.obj, self.bones.ctrl.master)
Exemplo n.º 5
0
 def make_master_control_widget(self):
     ctrl = self.bones.ctrl.master
     create_jaw_widget(self.obj, ctrl)