Skinify: fix shape generation
[blender-addons.git] / add_camera_rigs / composition_guides_menu.py
blobc689929b9c4291b2470746a7ffe47f734063c5c9
1 # SPDX-License-Identifier: GPL-2.0-or-later
3 import bpy
4 from bpy.types import Panel
6 from .operators import get_rig_and_cam
8 class ADD_CAMERA_RIGS_PT_composition_guides(Panel):
9 bl_label = "Composition Guides"
10 bl_space_type = 'VIEW_3D'
11 bl_region_type = 'HEADER'
13 def draw(self, context):
14 layout = self.layout
16 rig, cam = get_rig_and_cam(context.active_object)
17 cam = cam.data
19 layout.prop(cam, "show_safe_areas")
20 layout.row().separator()
21 layout.prop(cam, "show_composition_center")
22 layout.prop(cam, "show_composition_center_diagonal")
23 layout.prop(cam, "show_composition_golden")
24 layout.prop(cam, "show_composition_golden_tria_a")
25 layout.prop(cam, "show_composition_golden_tria_b")
26 layout.prop(cam, "show_composition_harmony_tri_a")
27 layout.prop(cam, "show_composition_harmony_tri_b")
28 layout.prop(cam, "show_composition_thirds")
31 def register():
32 bpy.utils.register_class(ADD_CAMERA_RIGS_PT_composition_guides)
35 def unregister():
36 bpy.utils.unregister_class(ADD_CAMERA_RIGS_PT_composition_guides)
39 if __name__ == "__main__":
40 register()