Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/blender/addon/ui.py
| Show First 20 Lines • Show All 529 Lines • ▼ Show 20 Lines | |||||
| class CYCLES_RENDER_PT_film_transparency(CyclesButtonsPanel, Panel): | class CYCLES_RENDER_PT_film_transparency(CyclesButtonsPanel, Panel): | ||||
| bl_label = "Transparency" | bl_label = "Transparency" | ||||
| bl_parent_id = "CYCLES_RENDER_PT_film" | bl_parent_id = "CYCLES_RENDER_PT_film" | ||||
| def draw_header(self, context): | def draw_header(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| scene = context.scene | scene = context.scene | ||||
| cscene = scene.cycles | rd = scene.render | ||||
| layout.prop(cscene, "film_transparent", text="") | layout.prop(rd, "film_transparent", text="") | ||||
| 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 | layout.use_property_decorate = False | ||||
| scene = context.scene | scene = context.scene | ||||
| rd = scene.render | |||||
| cscene = scene.cycles | cscene = scene.cycles | ||||
| layout.active = cscene.film_transparent | layout.active = rd.film_transparent | ||||
| col = layout.column() | col = layout.column() | ||||
| col.prop(cscene, "film_transparent_glass", text="Transparent Glass") | col.prop(cscene, "film_transparent_glass", text="Transparent Glass") | ||||
| sub = col.column() | sub = col.column() | ||||
| sub.active = cscene.film_transparent and cscene.film_transparent_glass | sub.active = rd.film_transparent and cscene.film_transparent_glass | ||||
| sub.prop(cscene, "film_transparent_roughness", text="Roughness Threshold") | sub.prop(cscene, "film_transparent_roughness", text="Roughness Threshold") | ||||
| class CYCLES_RENDER_PT_film_pixel_filter(CyclesButtonsPanel, Panel): | class CYCLES_RENDER_PT_film_pixel_filter(CyclesButtonsPanel, Panel): | ||||
| bl_label = "Pixel Filter" | bl_label = "Pixel Filter" | ||||
| bl_parent_id = "CYCLES_RENDER_PT_film" | bl_parent_id = "CYCLES_RENDER_PT_film" | ||||
| def draw(self, context): | def draw(self, context): | ||||
| ▲ Show 20 Lines • Show All 1,653 Lines • Show Last 20 Lines | |||||