Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_view_layer.py
| Show First 20 Lines • Show All 165 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| "aovs", view_layer, "active_aov_index", rows=3) | "aovs", view_layer, "active_aov_index", rows=3) | ||||
| col = row.column() | col = row.column() | ||||
| sub = col.column(align=True) | sub = col.column(align=True) | ||||
| sub.operator("scene.view_layer_add_aov", icon='ADD', text="") | sub.operator("scene.view_layer_add_aov", icon='ADD', text="") | ||||
| sub.operator("scene.view_layer_remove_aov", icon='REMOVE', text="") | sub.operator("scene.view_layer_remove_aov", icon='REMOVE', text="") | ||||
| aov = view_layer.active_aov | aov = view_layer.active_aov | ||||
| if aov and not aov.is_valid: | if aov is None: | ||||
| return | |||||
| if not aov.is_valid: | |||||
| layout.label( | layout.label( | ||||
| text="Conflicts with another render pass with the same name", icon='ERROR') | text="Conflicts with another render pass with the same name", icon='ERROR') | ||||
| if aov.type == 'LPE': | |||||
| layout.prop(aov, "light_path_expression") | |||||
| class VIEWLAYER_PT_layer_passes_aov(ViewLayerAOVPanel): | class VIEWLAYER_PT_layer_passes_aov(ViewLayerAOVPanel): | ||||
| 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'} | ||||
| class ViewLayerCryptomattePanel(ViewLayerButtonsPanel, Panel): | class ViewLayerCryptomattePanel(ViewLayerButtonsPanel, Panel): | ||||
| bl_label = "Cryptomatte" | bl_label = "Cryptomatte" | ||||
| ▲ Show 20 Lines • Show All 95 Lines • Show Last 20 Lines | |||||