Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_data_camera.py
| Context not available. | |||||
| preset_subdir = "camera" | preset_subdir = "camera" | ||||
| preset_operator = "script.execute_preset" | preset_operator = "script.execute_preset" | ||||
| preset_add_operator = "camera.preset_add" | preset_add_operator = "camera.preset_add" | ||||
| COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_WORKBENCH'} | COMPAT_ENGINES = {'BLENDER_EEVEE', 'BLENDER_WORKBENCH'} | ||||
| class SAFE_AREAS_PT_presets(PresetMenu): | class SAFE_AREAS_PT_presets(PresetMenu): | ||||
| Context not available. | |||||
| preset_subdir = "safe_areas" | preset_subdir = "safe_areas" | ||||
| preset_operator = "script.execute_preset" | preset_operator = "script.execute_preset" | ||||
| preset_add_operator = "safe_areas.preset_add" | preset_add_operator = "safe_areas.preset_add" | ||||
| COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_WORKBENCH'} | COMPAT_ENGINES = {'BLENDER_EEVEE', 'BLENDER_WORKBENCH'} | ||||
| class DATA_PT_context_camera(CameraButtonsPanel, Panel): | class DATA_PT_context_camera(CameraButtonsPanel, Panel): | ||||
| bl_label = "" | bl_label = "" | ||||
| bl_options = {'HIDE_HEADER'} | bl_options = {'HIDE_HEADER'} | ||||
| COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_WORKBENCH'} | COMPAT_ENGINES = {'BLENDER_EEVEE', 'BLENDER_WORKBENCH'} | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| Context not available. | |||||
| class DATA_PT_lens(CameraButtonsPanel, Panel): | class DATA_PT_lens(CameraButtonsPanel, Panel): | ||||
| bl_label = "Lens" | bl_label = "Lens" | ||||
| COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_WORKBENCH'} | COMPAT_ENGINES = {'BLENDER_EEVEE', 'BLENDER_WORKBENCH'} | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| Context not available. | |||||
| sub = col.column(align=True) | sub = col.column(align=True) | ||||
| sub.prop(ccam, "longitude_min", text="Longitude Min") | sub.prop(ccam, "longitude_min", text="Longitude Min") | ||||
| sub.prop(ccam, "longitude_max", text="Max") | sub.prop(ccam, "longitude_max", text="Max") | ||||
| elif engine in {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_WORKBENCH'}: | elif engine in {'BLENDER_EEVEE', 'BLENDER_WORKBENCH'}: | ||||
| if cam.lens_unit == 'MILLIMETERS': | if cam.lens_unit == 'MILLIMETERS': | ||||
| col.prop(cam, "lens") | col.prop(cam, "lens") | ||||
| elif cam.lens_unit == 'FOV': | elif cam.lens_unit == 'FOV': | ||||
| Context not available. | |||||
| class DATA_PT_camera_stereoscopy(CameraButtonsPanel, Panel): | class DATA_PT_camera_stereoscopy(CameraButtonsPanel, Panel): | ||||
| bl_label = "Stereoscopy" | bl_label = "Stereoscopy" | ||||
| COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_WORKBENCH'} | COMPAT_ENGINES = {'BLENDER_EEVEE', 'BLENDER_WORKBENCH'} | ||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| Context not available. | |||||
| class DATA_PT_camera(CameraButtonsPanel, Panel): | class DATA_PT_camera(CameraButtonsPanel, Panel): | ||||
| bl_label = "Camera" | bl_label = "Camera" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_WORKBENCH'} | COMPAT_ENGINES = {'BLENDER_EEVEE', 'BLENDER_WORKBENCH'} | ||||
| def draw_header_preset(self, context): | def draw_header_preset(self, context): | ||||
| CAMERA_PT_presets.draw_panel_header(self.layout) | CAMERA_PT_presets.draw_panel_header(self.layout) | ||||
| Context not available. | |||||
| class DATA_PT_camera_dof(CameraButtonsPanel, Panel): | class DATA_PT_camera_dof(CameraButtonsPanel, Panel): | ||||
| bl_label = "Depth of Field" | bl_label = "Depth of Field" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE'} | COMPAT_ENGINES = {'BLENDER_EEVEE', 'BLENDER_WORKBENCH'} | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| Context not available. | |||||
| class DATA_PT_camera_dof_aperture(CameraButtonsPanel, Panel): | class DATA_PT_camera_dof_aperture(CameraButtonsPanel, Panel): | ||||
| bl_label = "Aperture" | bl_label = "Aperture" | ||||
| bl_parent_id = "DATA_PT_camera_dof" | bl_parent_id = "DATA_PT_camera_dof" | ||||
| COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE'} | |||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| Context not available. | |||||
| flow = layout.grid_flow(row_major=True, columns=0, even_columns=True, even_rows=False, align=False) | flow = layout.grid_flow(row_major=True, columns=0, even_columns=True, even_rows=False, align=False) | ||||
| if context.engine == 'BLENDER_EEVEE': | col = flow.column() | ||||
| col = flow.column() | col.prop(dof_options, "fstop") | ||||
| col.prop(dof_options, "fstop") | col.prop(dof_options, "blades") | ||||
| col.prop(dof_options, "blades") | |||||
| col = flow.column() | col = flow.column() | ||||
| col.prop(dof_options, "rotation") | col.prop(dof_options, "rotation") | ||||
| col.prop(dof_options, "ratio") | col.prop(dof_options, "ratio") | ||||
| else: | |||||
| col = flow.column() | |||||
| col.label(text="Viewport") | |||||
| col.prop(dof_options, "fstop") | |||||
| col.prop(dof_options, "blades") | |||||
| class DATA_PT_camera_background_image(CameraButtonsPanel, Panel): | class DATA_PT_camera_background_image(CameraButtonsPanel, Panel): | ||||
| bl_label = "Background Images" | bl_label = "Background Images" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_WORKBENCH'} | COMPAT_ENGINES = { 'BLENDER_EEVEE', 'BLENDER_WORKBENCH'} | ||||
| def draw_header(self, context): | def draw_header(self, context): | ||||
| cam = context.camera | cam = context.camera | ||||
| Context not available. | |||||
| class DATA_PT_camera_display(CameraButtonsPanel, Panel): | class DATA_PT_camera_display(CameraButtonsPanel, Panel): | ||||
| bl_label = "Viewport Display" | bl_label = "Viewport Display" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_WORKBENCH'} | COMPAT_ENGINES = { 'BLENDER_EEVEE', 'BLENDER_WORKBENCH'} | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| Context not available. | |||||
| class DATA_PT_camera_safe_areas(CameraButtonsPanel, Panel): | class DATA_PT_camera_safe_areas(CameraButtonsPanel, Panel): | ||||
| bl_label = "Safe Areas" | bl_label = "Safe Areas" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_WORKBENCH'} | COMPAT_ENGINES = {'BLENDER_EEVEE', 'BLENDER_WORKBENCH'} | ||||
| def draw_header(self, context): | def draw_header(self, context): | ||||
| cam = context.camera | cam = context.camera | ||||
| Context not available. | |||||
| class DATA_PT_custom_props_camera(CameraButtonsPanel, PropertyPanel, Panel): | class DATA_PT_custom_props_camera(CameraButtonsPanel, PropertyPanel, Panel): | ||||
| COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_WORKBENCH'} | COMPAT_ENGINES = {'BLENDER_EEVEE', 'BLENDER_WORKBENCH'} | ||||
| _context_path = "object.data" | _context_path = "object.data" | ||||
| _property_type = bpy.types.Camera | _property_type = bpy.types.Camera | ||||
| Context not available. | |||||