Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_render.py
| Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| if rd.has_multiple_engines: | if rd.has_multiple_engines: | ||||
| layout.prop(rd, "engine", text="Render Engine") | layout.prop(rd, "engine", text="Render Engine") | ||||
| class RENDER_PT_color_management(RenderButtonsPanel, Panel): | class RENDER_PT_color_management(RenderButtonsPanel, Panel): | ||||
| bl_label = "Color Management" | bl_label = "Color Management" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| bl_order = 100 | bl_order = 100 | ||||
| COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_EEVEE_NEXT', 'BLENDER_WORKBENCH'} | COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_EEVEE_NEXT', 'BLENDER_WORKBENCH','BLENDER_WORKBENCH_NEXT'} | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| layout.use_property_split = True | layout.use_property_split = True | ||||
| layout.use_property_decorate = False # No animation. | layout.use_property_decorate = False # No animation. | ||||
| scene = context.scene | scene = context.scene | ||||
| view = scene.view_settings | view = scene.view_settings | ||||
| Show All 16 Lines | def draw(self, context): | ||||
| col.prop(scene.sequencer_colorspace_settings, "name", text="Sequencer") | col.prop(scene.sequencer_colorspace_settings, "name", text="Sequencer") | ||||
| class RENDER_PT_color_management_curves(RenderButtonsPanel, Panel): | class RENDER_PT_color_management_curves(RenderButtonsPanel, Panel): | ||||
| bl_label = "Use Curves" | bl_label = "Use Curves" | ||||
| bl_parent_id = "RENDER_PT_color_management" | bl_parent_id = "RENDER_PT_color_management" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_EEVEE_NEXT', 'BLENDER_WORKBENCH'} | COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_EEVEE_NEXT', 'BLENDER_WORKBENCH','BLENDER_WORKBENCH_NEXT'} | ||||
| def draw_header(self, context): | def draw_header(self, context): | ||||
| scene = context.scene | scene = context.scene | ||||
| view = scene.view_settings | view = scene.view_settings | ||||
| self.layout.prop(view, "use_curve_mapping", text="") | self.layout.prop(view, "use_curve_mapping", text="") | ||||
| ▲ Show 20 Lines • Show All 543 Lines • ▼ Show 20 Lines | class RENDER_PT_eevee_hair(RenderButtonsPanel, Panel): | ||||
| def draw(self, context): | def draw(self, context): | ||||
| draw_curves_settings(self, context) | draw_curves_settings(self, context) | ||||
| class RENDER_PT_eevee_performance(RenderButtonsPanel, Panel): | class RENDER_PT_eevee_performance(RenderButtonsPanel, Panel): | ||||
| bl_label = "Performance" | bl_label = "Performance" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| COMPAT_ENGINES = {'BLENDER_EEVEE', 'BLENDER_EEVEE_NEXT', 'BLENDER_WORKBENCH'} | COMPAT_ENGINES = {'BLENDER_EEVEE', 'BLENDER_EEVEE_NEXT', 'BLENDER_WORKBENCH','BLENDER_WORKBENCH_NEXT'} | ||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| return (context.engine in cls.COMPAT_ENGINES) | return (context.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 | ||||
| rd = scene.render | rd = scene.render | ||||
| layout.use_property_split = True | layout.use_property_split = True | ||||
| layout.use_property_decorate = False # No animation. | layout.use_property_decorate = False # No animation. | ||||
| layout.prop(rd, "use_high_quality_normals") | layout.prop(rd, "use_high_quality_normals") | ||||
| class RENDER_PT_gpencil(RenderButtonsPanel, Panel): | class RENDER_PT_gpencil(RenderButtonsPanel, Panel): | ||||
| bl_label = "Grease Pencil" | bl_label = "Grease Pencil" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| bl_order = 10 | bl_order = 10 | ||||
| COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_EEVEE_NEXT', 'BLENDER_WORKBENCH'} | COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_EEVEE_NEXT', 'BLENDER_WORKBENCH','BLENDER_WORKBENCH_NEXT'} | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| layout.use_property_split = True | layout.use_property_split = True | ||||
| layout.use_property_decorate = False # No animation. | layout.use_property_decorate = False # No animation. | ||||
| scene = context.scene | scene = context.scene | ||||
| props = scene.grease_pencil_settings | props = scene.grease_pencil_settings | ||||
| col = layout.column() | col = layout.column() | ||||
| col.prop(props, "antialias_threshold") | col.prop(props, "antialias_threshold") | ||||
| class RENDER_PT_opengl_sampling(RenderButtonsPanel, Panel): | class RENDER_PT_opengl_sampling(RenderButtonsPanel, Panel): | ||||
| bl_label = "Sampling" | bl_label = "Sampling" | ||||
| COMPAT_ENGINES = {'BLENDER_WORKBENCH'} | COMPAT_ENGINES = {'BLENDER_WORKBENCH','BLENDER_WORKBENCH_NEXT'} | ||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| return (context.engine in cls.COMPAT_ENGINES) | return (context.engine in cls.COMPAT_ENGINES) | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| layout.use_property_split = True | layout.use_property_split = True | ||||
| layout.use_property_decorate = False # No animation. | layout.use_property_decorate = False # No animation. | ||||
| scene = context.scene | scene = context.scene | ||||
| props = scene.display | props = scene.display | ||||
| col = layout.column() | col = layout.column() | ||||
| col.prop(props, "render_aa", text="Render") | col.prop(props, "render_aa", text="Render") | ||||
| col.prop(props, "viewport_aa", text="Viewport") | col.prop(props, "viewport_aa", text="Viewport") | ||||
| class RENDER_PT_opengl_film(RenderButtonsPanel, Panel): | class RENDER_PT_opengl_film(RenderButtonsPanel, Panel): | ||||
| bl_label = "Film" | bl_label = "Film" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| COMPAT_ENGINES = {'BLENDER_WORKBENCH'} | COMPAT_ENGINES = {'BLENDER_WORKBENCH','BLENDER_WORKBENCH_NEXT'} | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| layout.use_property_split = True | layout.use_property_split = True | ||||
| layout.use_property_decorate = False # No animation. | layout.use_property_decorate = False # No animation. | ||||
| rd = context.scene.render | rd = context.scene.render | ||||
| layout.prop(rd, "film_transparent", text="Transparent") | layout.prop(rd, "film_transparent", text="Transparent") | ||||
| class RENDER_PT_opengl_lighting(RenderButtonsPanel, Panel): | class RENDER_PT_opengl_lighting(RenderButtonsPanel, Panel): | ||||
| bl_label = "Lighting" | bl_label = "Lighting" | ||||
| COMPAT_ENGINES = {'BLENDER_WORKBENCH'} | COMPAT_ENGINES = {'BLENDER_WORKBENCH','BLENDER_WORKBENCH_NEXT'} | ||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| return (context.engine in cls.COMPAT_ENGINES) | return (context.engine in cls.COMPAT_ENGINES) | ||||
| def draw(self, context): | def draw(self, context): | ||||
| VIEW3D_PT_shading_lighting.draw(self, context) | VIEW3D_PT_shading_lighting.draw(self, context) | ||||
| class RENDER_PT_opengl_color(RenderButtonsPanel, Panel): | class RENDER_PT_opengl_color(RenderButtonsPanel, Panel): | ||||
| bl_label = "Color" | bl_label = "Color" | ||||
| COMPAT_ENGINES = {'BLENDER_WORKBENCH'} | COMPAT_ENGINES = {'BLENDER_WORKBENCH','BLENDER_WORKBENCH_NEXT'} | ||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| return (context.engine in cls.COMPAT_ENGINES) | return (context.engine in cls.COMPAT_ENGINES) | ||||
| def draw(self, context): | def draw(self, context): | ||||
| VIEW3D_PT_shading_color._draw_color_type(self, context) | VIEW3D_PT_shading_color._draw_color_type(self, context) | ||||
| class RENDER_PT_opengl_options(RenderButtonsPanel, Panel): | class RENDER_PT_opengl_options(RenderButtonsPanel, Panel): | ||||
| bl_label = "Options" | bl_label = "Options" | ||||
| COMPAT_ENGINES = {'BLENDER_WORKBENCH'} | COMPAT_ENGINES = {'BLENDER_WORKBENCH','BLENDER_WORKBENCH_NEXT'} | ||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| return (context.engine in cls.COMPAT_ENGINES) | return (context.engine in cls.COMPAT_ENGINES) | ||||
| def draw(self, context): | def draw(self, context): | ||||
| VIEW3D_PT_shading_options.draw(self, context) | VIEW3D_PT_shading_options.draw(self, context) | ||||
| class RENDER_PT_simplify(RenderButtonsPanel, Panel): | class RENDER_PT_simplify(RenderButtonsPanel, Panel): | ||||
| bl_label = "Simplify" | bl_label = "Simplify" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_EEVEE_NEXT', 'BLENDER_WORKBENCH'} | COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_EEVEE_NEXT', 'BLENDER_WORKBENCH','BLENDER_WORKBENCH_NEXT'} | ||||
| def draw_header(self, context): | def draw_header(self, context): | ||||
| rd = context.scene.render | rd = context.scene.render | ||||
| self.layout.prop(rd, "use_simplify", text="") | self.layout.prop(rd, "use_simplify", text="") | ||||
| def draw(self, context): | def draw(self, context): | ||||
| pass | pass | ||||
| class RENDER_PT_simplify_viewport(RenderButtonsPanel, Panel): | class RENDER_PT_simplify_viewport(RenderButtonsPanel, Panel): | ||||
| bl_label = "Viewport" | bl_label = "Viewport" | ||||
| bl_parent_id = "RENDER_PT_simplify" | bl_parent_id = "RENDER_PT_simplify" | ||||
| COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_EEVEE_NEXT', 'BLENDER_WORKBENCH'} | COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_EEVEE_NEXT', 'BLENDER_WORKBENCH','BLENDER_WORKBENCH_NEXT'} | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| layout.use_property_split = True | layout.use_property_split = True | ||||
| rd = context.scene.render | rd = context.scene.render | ||||
| layout.active = rd.use_simplify | layout.active = rd.use_simplify | ||||
| flow = layout.grid_flow(row_major=True, columns=0, even_columns=False, even_rows=False, align=True) | flow = layout.grid_flow(row_major=True, columns=0, even_columns=False, even_rows=False, align=True) | ||||
| col = flow.column() | col = flow.column() | ||||
| col.prop(rd, "simplify_subdivision", text="Max Subdivision") | col.prop(rd, "simplify_subdivision", text="Max Subdivision") | ||||
| col = flow.column() | col = flow.column() | ||||
| col.prop(rd, "simplify_child_particles", text="Max Child Particles") | col.prop(rd, "simplify_child_particles", text="Max Child Particles") | ||||
| col = flow.column() | col = flow.column() | ||||
| col.prop(rd, "simplify_volumes", text="Volume Resolution") | col.prop(rd, "simplify_volumes", text="Volume Resolution") | ||||
| class RENDER_PT_simplify_render(RenderButtonsPanel, Panel): | class RENDER_PT_simplify_render(RenderButtonsPanel, Panel): | ||||
| bl_label = "Render" | bl_label = "Render" | ||||
| bl_parent_id = "RENDER_PT_simplify" | bl_parent_id = "RENDER_PT_simplify" | ||||
| COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_EEVEE_NEXT', 'BLENDER_WORKBENCH'} | COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_EEVEE_NEXT', 'BLENDER_WORKBENCH','BLENDER_WORKBENCH_NEXT'} | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| layout.use_property_split = True | layout.use_property_split = True | ||||
| rd = context.scene.render | rd = context.scene.render | ||||
| layout.active = rd.use_simplify | layout.active = rd.use_simplify | ||||
| Show All 11 Lines | class RENDER_PT_simplify_greasepencil(RenderButtonsPanel, Panel, GreasePencilSimplifyPanel): | ||||
| bl_label = "Grease Pencil" | bl_label = "Grease Pencil" | ||||
| bl_parent_id = "RENDER_PT_simplify" | bl_parent_id = "RENDER_PT_simplify" | ||||
| COMPAT_ENGINES = { | COMPAT_ENGINES = { | ||||
| 'BLENDER_RENDER', | 'BLENDER_RENDER', | ||||
| 'BLENDER_GAME', | 'BLENDER_GAME', | ||||
| 'BLENDER_CLAY', | 'BLENDER_CLAY', | ||||
| 'BLENDER_EEVEE', | 'BLENDER_EEVEE', | ||||
| 'BLENDER_EEVEE_NEXT', | 'BLENDER_EEVEE_NEXT', | ||||
| 'BLENDER_WORKBENCH', | 'BLENDER_WORKBENCH','BLENDER_WORKBENCH_NEXT', | ||||
| } | } | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| classes = ( | classes = ( | ||||
| RENDER_PT_context, | RENDER_PT_context, | ||||
| RENDER_PT_eevee_sampling, | RENDER_PT_eevee_sampling, | ||||
| RENDER_PT_eevee_next_sampling, | RENDER_PT_eevee_next_sampling, | ||||
| Show All 39 Lines | |||||