Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_render.py
| Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | class RenderButtonsPanel: | ||||
| bl_space_type = 'PROPERTIES' | bl_space_type = 'PROPERTIES' | ||||
| bl_region_type = 'WINDOW' | bl_region_type = 'WINDOW' | ||||
| bl_context = "render" | bl_context = "render" | ||||
| # COMPAT_ENGINES must be defined in each subclass, external engines can add themselves here | # COMPAT_ENGINES must be defined in each subclass, external engines can add themselves here | ||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| scene = context.scene | scene = context.scene | ||||
| return scene and (scene.render.engine in cls.COMPAT_ENGINES) | return scene and (scene.view_render.engine in cls.COMPAT_ENGINES) | ||||
| class RENDER_PT_context(Panel): | |||||
| bl_space_type = 'PROPERTIES' | |||||
| bl_region_type = 'WINDOW' | |||||
| bl_context = "render" | |||||
| bl_options = {'HIDE_HEADER'} | |||||
| bl_label = "" | |||||
| @classmethod | |||||
| def poll(cls, context): | |||||
| return context.scene | |||||
| def draw(self, context): | |||||
| layout = self.layout | |||||
| scene = context.scene | |||||
| view_render = scene.view_render | |||||
| if view_render.has_multiple_engines: | |||||
| layout.prop(view_render, "engine", text="") | |||||
| class RENDER_PT_render(RenderButtonsPanel, Panel): | class RENDER_PT_render(RenderButtonsPanel, Panel): | ||||
| bl_label = "Render" | bl_label = "Render" | ||||
| COMPAT_ENGINES = {'BLENDER_RENDER'} | COMPAT_ENGINES = {'BLENDER_RENDER'} | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| ▲ Show 20 Lines • Show All 138 Lines • ▼ Show 20 Lines | |||||
| class RENDER_PT_motion_blur(RenderButtonsPanel, Panel): | class RENDER_PT_motion_blur(RenderButtonsPanel, Panel): | ||||
| bl_label = "Sampled Motion Blur" | bl_label = "Sampled Motion Blur" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| COMPAT_ENGINES = {'BLENDER_RENDER'} | COMPAT_ENGINES = {'BLENDER_RENDER'} | ||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| rd = context.scene.render | scene = context.scene | ||||
| return not rd.use_full_sample and (rd.engine in cls.COMPAT_ENGINES) | rd = scene.render | ||||
| view_render = scene.view_render | |||||
| return not rd.use_full_sample and (view_render.engine in cls.COMPAT_ENGINES) | |||||
| def draw_header(self, context): | def draw_header(self, context): | ||||
| rd = context.scene.render | rd = context.scene.render | ||||
| self.layout.prop(rd, "use_motion_blur", text="") | self.layout.prop(rd, "use_motion_blur", text="") | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| ▲ Show 20 Lines • Show All 370 Lines • ▼ Show 20 Lines | |||||
| class RENDER_PT_eevee_ambient_occlusion(RenderButtonsPanel, Panel): | class RENDER_PT_eevee_ambient_occlusion(RenderButtonsPanel, Panel): | ||||
| bl_label = "Ambient Occlusion" | bl_label = "Ambient Occlusion" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| COMPAT_ENGINES = {'BLENDER_EEVEE'} | COMPAT_ENGINES = {'BLENDER_EEVEE'} | ||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| scene = context.scene | scene = context.scene | ||||
| return scene and (scene.render.engine in cls.COMPAT_ENGINES) | return scene and (scene.view_render.engine in cls.COMPAT_ENGINES) | ||||
| def draw_header(self, context): | def draw_header(self, context): | ||||
| scene = context.scene | scene = context.scene | ||||
| props = scene.layer_properties['BLENDER_EEVEE'] | props = scene.layer_properties['BLENDER_EEVEE'] | ||||
| self.layout.prop(props, "gtao_enable", text="") | self.layout.prop(props, "gtao_enable", text="") | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| Show All 14 Lines | |||||
| class RENDER_PT_eevee_motion_blur(RenderButtonsPanel, Panel): | class RENDER_PT_eevee_motion_blur(RenderButtonsPanel, Panel): | ||||
| bl_label = "Motion Blur" | bl_label = "Motion Blur" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| COMPAT_ENGINES = {'BLENDER_EEVEE'} | COMPAT_ENGINES = {'BLENDER_EEVEE'} | ||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| scene = context.scene | scene = context.scene | ||||
| return scene and (scene.render.engine in cls.COMPAT_ENGINES) | return scene and (scene.view_render.engine in cls.COMPAT_ENGINES) | ||||
| def draw_header(self, context): | def draw_header(self, context): | ||||
| scene = context.scene | scene = context.scene | ||||
| props = scene.layer_properties['BLENDER_EEVEE'] | props = scene.layer_properties['BLENDER_EEVEE'] | ||||
| self.layout.prop(props, "motion_blur_enable", text="") | self.layout.prop(props, "motion_blur_enable", text="") | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| Show All 9 Lines | |||||
| class RENDER_PT_eevee_depth_of_field(RenderButtonsPanel, Panel): | class RENDER_PT_eevee_depth_of_field(RenderButtonsPanel, Panel): | ||||
| bl_label = "Depth of Field" | bl_label = "Depth of Field" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| COMPAT_ENGINES = {'BLENDER_EEVEE'} | COMPAT_ENGINES = {'BLENDER_EEVEE'} | ||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| scene = context.scene | scene = context.scene | ||||
| return scene and (scene.render.engine in cls.COMPAT_ENGINES) | return scene and (scene.view_render.engine in cls.COMPAT_ENGINES) | ||||
| def draw_header(self, context): | def draw_header(self, context): | ||||
| scene = context.scene | scene = context.scene | ||||
| props = scene.layer_properties['BLENDER_EEVEE'] | props = scene.layer_properties['BLENDER_EEVEE'] | ||||
| self.layout.prop(props, "dof_enable", text="") | self.layout.prop(props, "dof_enable", text="") | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| Show All 9 Lines | |||||
| class RENDER_PT_eevee_bloom(RenderButtonsPanel, Panel): | class RENDER_PT_eevee_bloom(RenderButtonsPanel, Panel): | ||||
| bl_label = "Bloom" | bl_label = "Bloom" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| COMPAT_ENGINES = {'BLENDER_EEVEE'} | COMPAT_ENGINES = {'BLENDER_EEVEE'} | ||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| scene = context.scene | scene = context.scene | ||||
| return scene and (scene.render.engine in cls.COMPAT_ENGINES) | return scene and (scene.view_render.engine in cls.COMPAT_ENGINES) | ||||
| def draw_header(self, context): | def draw_header(self, context): | ||||
| scene = context.scene | scene = context.scene | ||||
| props = scene.layer_properties['BLENDER_EEVEE'] | props = scene.layer_properties['BLENDER_EEVEE'] | ||||
| self.layout.prop(props, "bloom_enable", text="") | self.layout.prop(props, "bloom_enable", text="") | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| Show All 13 Lines | |||||
| class RENDER_PT_eevee_volumetric(RenderButtonsPanel, Panel): | class RENDER_PT_eevee_volumetric(RenderButtonsPanel, Panel): | ||||
| bl_label = "Volumetric" | bl_label = "Volumetric" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| COMPAT_ENGINES = {'BLENDER_EEVEE'} | COMPAT_ENGINES = {'BLENDER_EEVEE'} | ||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| scene = context.scene | scene = context.scene | ||||
| return scene and (scene.render.engine in cls.COMPAT_ENGINES) | return scene and (scene.view_render.engine in cls.COMPAT_ENGINES) | ||||
| def draw_header(self, context): | def draw_header(self, context): | ||||
| scene = context.scene | scene = context.scene | ||||
| props = scene.layer_properties['BLENDER_EEVEE'] | props = scene.layer_properties['BLENDER_EEVEE'] | ||||
| self.layout.prop(props, "volumetric_enable", text="") | self.layout.prop(props, "volumetric_enable", text="") | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| Show All 16 Lines | |||||
| class RENDER_PT_eevee_screen_space_reflections(RenderButtonsPanel, Panel): | class RENDER_PT_eevee_screen_space_reflections(RenderButtonsPanel, Panel): | ||||
| bl_label = "Screen Space Reflections" | bl_label = "Screen Space Reflections" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| COMPAT_ENGINES = {'BLENDER_EEVEE'} | COMPAT_ENGINES = {'BLENDER_EEVEE'} | ||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| scene = context.scene | scene = context.scene | ||||
| return scene and (scene.render.engine in cls.COMPAT_ENGINES) | return scene and (scene.view_render.engine in cls.COMPAT_ENGINES) | ||||
| def draw_header(self, context): | def draw_header(self, context): | ||||
| scene = context.scene | scene = context.scene | ||||
| props = scene.layer_properties['BLENDER_EEVEE'] | props = scene.layer_properties['BLENDER_EEVEE'] | ||||
| self.layout.prop(props, "ssr_enable", text="") | self.layout.prop(props, "ssr_enable", text="") | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| Show All 15 Lines | |||||
| class RENDER_PT_eevee_shadows(RenderButtonsPanel, Panel): | class RENDER_PT_eevee_shadows(RenderButtonsPanel, Panel): | ||||
| bl_label = "Shadows" | bl_label = "Shadows" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| COMPAT_ENGINES = {'BLENDER_EEVEE'} | COMPAT_ENGINES = {'BLENDER_EEVEE'} | ||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| scene = context.scene | scene = context.scene | ||||
| return scene and (scene.render.engine in cls.COMPAT_ENGINES) | return scene and (scene.view_render.engine in cls.COMPAT_ENGINES) | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| scene = context.scene | scene = context.scene | ||||
| props = scene.layer_properties['BLENDER_EEVEE'] | props = scene.layer_properties['BLENDER_EEVEE'] | ||||
| col = layout.column() | col = layout.column() | ||||
| col.prop(props, "shadow_method") | col.prop(props, "shadow_method") | ||||
| col.prop(props, "shadow_size") | col.prop(props, "shadow_size") | ||||
| col.prop(props, "shadow_high_bitdepth") | col.prop(props, "shadow_high_bitdepth") | ||||
| class RENDER_PT_eevee_sampling(RenderButtonsPanel, Panel): | class RENDER_PT_eevee_sampling(RenderButtonsPanel, Panel): | ||||
| bl_label = "Sampling" | bl_label = "Sampling" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| COMPAT_ENGINES = {'BLENDER_EEVEE'} | COMPAT_ENGINES = {'BLENDER_EEVEE'} | ||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| scene = context.scene | scene = context.scene | ||||
| return scene and (scene.render.engine in cls.COMPAT_ENGINES) | return scene and (scene.view_render.engine in cls.COMPAT_ENGINES) | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| scene = context.scene | scene = context.scene | ||||
| props = scene.layer_properties['BLENDER_EEVEE'] | props = scene.layer_properties['BLENDER_EEVEE'] | ||||
| col = layout.column() | col = layout.column() | ||||
| col.prop(props, "taa_samples") | col.prop(props, "taa_samples") | ||||
| class RENDER_PT_eevee_indirect_lighting(RenderButtonsPanel, Panel): | class RENDER_PT_eevee_indirect_lighting(RenderButtonsPanel, Panel): | ||||
| bl_label = "Indirect Lighting" | bl_label = "Indirect Lighting" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| COMPAT_ENGINES = {'BLENDER_EEVEE'} | COMPAT_ENGINES = {'BLENDER_EEVEE'} | ||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| scene = context.scene | scene = context.scene | ||||
| return scene and (scene.render.engine in cls.COMPAT_ENGINES) | return scene and (scene.view_render.engine in cls.COMPAT_ENGINES) | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| scene = context.scene | scene = context.scene | ||||
| props = scene.layer_properties['BLENDER_EEVEE'] | props = scene.layer_properties['BLENDER_EEVEE'] | ||||
| col = layout.column() | col = layout.column() | ||||
| col.prop(props, "gi_diffuse_bounces") | col.prop(props, "gi_diffuse_bounces") | ||||
| col.prop(props, "gi_cubemap_resolution") | col.prop(props, "gi_cubemap_resolution") | ||||
| classes = ( | classes = ( | ||||
| RENDER_MT_presets, | RENDER_MT_presets, | ||||
| RENDER_MT_ffmpeg_presets, | RENDER_MT_ffmpeg_presets, | ||||
| RENDER_MT_framerate_presets, | RENDER_MT_framerate_presets, | ||||
| RENDER_PT_context, | |||||
| RENDER_PT_render, | RENDER_PT_render, | ||||
| RENDER_PT_dimensions, | RENDER_PT_dimensions, | ||||
| RENDER_PT_antialiasing, | RENDER_PT_antialiasing, | ||||
| RENDER_PT_motion_blur, | RENDER_PT_motion_blur, | ||||
| RENDER_PT_shading, | RENDER_PT_shading, | ||||
| RENDER_PT_performance, | RENDER_PT_performance, | ||||
| RENDER_PT_post_processing, | RENDER_PT_post_processing, | ||||
| RENDER_PT_stamp, | RENDER_PT_stamp, | ||||
| Show All 20 Lines | |||||