Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_view_layer.py
| Show All 20 Lines | class ViewLayerButtonsPanel: | ||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| return (context.engine in cls.COMPAT_ENGINES) | return (context.engine in cls.COMPAT_ENGINES) | ||||
| class VIEWLAYER_PT_layer(ViewLayerButtonsPanel, Panel): | class VIEWLAYER_PT_layer(ViewLayerButtonsPanel, Panel): | ||||
| bl_label = "View Layer" | bl_label = "View Layer" | ||||
| 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 | ||||
| scene = context.scene | scene = context.scene | ||||
| rd = scene.render | rd = scene.render | ||||
| layer = context.view_layer | layer = context.view_layer | ||||
| col = layout.column() | col = layout.column() | ||||
| col.prop(layer, "use", text="Use for Rendering") | col.prop(layer, "use", text="Use for Rendering") | ||||
| col.prop(rd, "use_single_layer", text="Render Single Layer") | col.prop(rd, "use_single_layer", text="Render Single Layer") | ||||
| class VIEWLAYER_PT_layer_passes(ViewLayerButtonsPanel, Panel): | class VIEWLAYER_PT_layer_passes(ViewLayerButtonsPanel, Panel): | ||||
| bl_label = "Passes" | bl_label = "Passes" | ||||
| COMPAT_ENGINES = {'BLENDER_EEVEE', 'BLENDER_EEVEE_NEXT'} | COMPAT_ENGINES = {'BLENDER_EEVEE', 'BLENDER_EEVEE_NEXT', 'BLENDER_WORKBENCH_NEXT'} | ||||
| def draw(self, context): | def draw(self, context): | ||||
| pass | pass | ||||
| class VIEWLAYER_PT_eevee_layer_passes_data(ViewLayerButtonsPanel, Panel): | class VIEWLAYER_PT_eevee_layer_passes_data(ViewLayerButtonsPanel, Panel): | ||||
| bl_label = "Data" | bl_label = "Data" | ||||
| bl_parent_id = "VIEWLAYER_PT_layer_passes" | bl_parent_id = "VIEWLAYER_PT_layer_passes" | ||||
| Show All 33 Lines | def draw(self, context): | ||||
| col.prop(view_layer, "use_pass_z") | col.prop(view_layer, "use_pass_z") | ||||
| col.prop(view_layer, "use_pass_mist") | col.prop(view_layer, "use_pass_mist") | ||||
| col.prop(view_layer, "use_pass_normal") | col.prop(view_layer, "use_pass_normal") | ||||
| col.prop(view_layer, "use_pass_position") | col.prop(view_layer, "use_pass_position") | ||||
| sub = col.column() | sub = col.column() | ||||
| sub.active = not scene.eevee.use_motion_blur | sub.active = not scene.eevee.use_motion_blur | ||||
| sub.prop(view_layer, "use_pass_vector") | sub.prop(view_layer, "use_pass_vector") | ||||
| class VIEWLAYER_PT_eevee_next_layer_passes_data(ViewLayerButtonsPanel, Panel): | |||||
| bl_label = "Data" | |||||
| bl_parent_id = "VIEWLAYER_PT_layer_passes" | |||||
| COMPAT_ENGINES = {'BLENDER_WORKBENCH_NEXT'} | |||||
| def draw(self, context): | |||||
| layout = self.layout | |||||
| layout.use_property_split = True | |||||
| layout.use_property_decorate = False | |||||
| view_layer = context.view_layer | |||||
| col = layout.column() | |||||
| col.prop(view_layer, "use_pass_combined") | |||||
| col.prop(view_layer, "use_pass_z") | |||||
| class VIEWLAYER_PT_eevee_layer_passes_light(ViewLayerButtonsPanel, Panel): | class VIEWLAYER_PT_eevee_layer_passes_light(ViewLayerButtonsPanel, Panel): | ||||
| bl_label = "Light" | bl_label = "Light" | ||||
| bl_parent_id = "VIEWLAYER_PT_layer_passes" | bl_parent_id = "VIEWLAYER_PT_layer_passes" | ||||
| COMPAT_ENGINES = {'BLENDER_EEVEE', 'BLENDER_EEVEE_NEXT'} | COMPAT_ENGINES = {'BLENDER_EEVEE', 'BLENDER_EEVEE_NEXT'} | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| ▲ Show 20 Lines • Show All 176 Lines • Show Last 20 Lines | |||||