Sun position: remove unused prop in HDRI mode
[blender-addons.git] / add_camera_rigs / composition_guides_menu.py
blob165375257ba7fc6db4d01af45981bfd28f76d4c4
1 # ##### BEGIN GPL LICENSE BLOCK #####
3 # This program is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU General Public License
5 # as published by the Free Software Foundation; either version 2
6 # of the License, or (at your option) any later version.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software Foundation,
15 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 # ##### END GPL LICENSE BLOCK #####
19 import bpy
20 from bpy.types import Panel
22 from .operators import get_rig_and_cam
24 class ADD_CAMERA_RIGS_PT_composition_guides(Panel):
25 bl_label = "Composition Guides"
26 bl_space_type = 'VIEW_3D'
27 bl_region_type = 'HEADER'
29 def draw(self, context):
30 layout = self.layout
32 rig, cam = get_rig_and_cam(context.active_object)
33 cam = cam.data
35 layout.prop(cam, "show_safe_areas")
36 layout.row().separator()
37 layout.prop(cam, "show_composition_center")
38 layout.prop(cam, "show_composition_center_diagonal")
39 layout.prop(cam, "show_composition_golden")
40 layout.prop(cam, "show_composition_golden_tria_a")
41 layout.prop(cam, "show_composition_golden_tria_b")
42 layout.prop(cam, "show_composition_harmony_tri_a")
43 layout.prop(cam, "show_composition_harmony_tri_b")
44 layout.prop(cam, "show_composition_thirds")
47 def register():
48 bpy.utils.register_class(ADD_CAMERA_RIGS_PT_composition_guides)
51 def unregister():
52 bpy.utils.unregister_class(ADD_CAMERA_RIGS_PT_composition_guides)
55 if __name__ == "__main__":
56 register()