Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/blender/addon/ui.py
| Show First 20 Lines • Show All 198 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| sub.prop(cscene, "subsurface_samples", text="Subsurface") | sub.prop(cscene, "subsurface_samples", text="Subsurface") | ||||
| sub.prop(cscene, "volume_samples", text="Volume") | sub.prop(cscene, "volume_samples", text="Volume") | ||||
| col = layout.column(align=True) | col = layout.column(align=True) | ||||
| col.prop(cscene, "sample_all_lights_direct") | col.prop(cscene, "sample_all_lights_direct") | ||||
| col.prop(cscene, "sample_all_lights_indirect") | col.prop(cscene, "sample_all_lights_indirect") | ||||
| layout.row().prop(cscene, "sampling_pattern", text="Pattern") | layout.row().prop(cscene, "sampling_pattern", text="Pattern") | ||||
| for rl in scene.render.layers: | |||||
| if rl.samples > 0: | |||||
| layout.separator() | |||||
| layout.row().prop(cscene, "use_layer_samples") | |||||
| break | |||||
| draw_samples_info(layout, context) | draw_samples_info(layout, context) | ||||
| class CYCLES_RENDER_PT_geometry(CyclesButtonsPanel, Panel): | class CYCLES_RENDER_PT_geometry(CyclesButtonsPanel, Panel): | ||||
| bl_label = "Geometry" | bl_label = "Geometry" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| def draw(self, context): | def draw(self, context): | ||||
| ▲ Show 20 Lines • Show All 180 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| sub.label(text="Tiles:") | sub.label(text="Tiles:") | ||||
| sub.prop(cscene, "tile_order", text="") | sub.prop(cscene, "tile_order", text="") | ||||
| sub.prop(rd, "tile_x", text="X") | sub.prop(rd, "tile_x", text="X") | ||||
| sub.prop(rd, "tile_y", text="Y") | sub.prop(rd, "tile_y", text="Y") | ||||
| subsub = sub.column() | subsub = sub.column() | ||||
| subsub.active = not rd.use_save_buffers | subsub.active = not rd.use_save_buffers | ||||
| for rl in rd.layers: | for rl in scene.render_layers: | ||||
| if rl.cycles.use_denoising: | if rl.cycles.use_denoising: | ||||
| subsub.active = False | subsub.active = False | ||||
| subsub.prop(cscene, "use_progressive_refine") | subsub.prop(cscene, "use_progressive_refine") | ||||
| col = split.column() | col = split.column() | ||||
| col.label(text="Final Render:") | col.label(text="Final Render:") | ||||
| col.prop(rd, "use_save_buffers") | col.prop(rd, "use_save_buffers") | ||||
| Show All 19 Lines | |||||
| class CYCLES_RENDER_PT_layer_options(CyclesButtonsPanel, Panel): | class CYCLES_RENDER_PT_layer_options(CyclesButtonsPanel, Panel): | ||||
| bl_label = "Layer" | bl_label = "Layer" | ||||
| bl_context = "render_layer" | bl_context = "render_layer" | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| scene = context.scene | scene = context.scene | ||||
| rd = scene.render | rl = scene.render_layers.active | ||||
| rl = rd.layers.active | |||||
| split = layout.split() | |||||
| col = split.column() | |||||
| col.prop(scene, "layers", text="Scene") | |||||
| col.prop(rl, "layers_exclude", text="Exclude") | |||||
| col = split.column() | |||||
| col.prop(rl, "layers", text="Layer") | |||||
| col.prop(rl, "layers_zmask", text="Mask Layer") | |||||
| split = layout.split() | |||||
| col = split.column() | |||||
| col.label(text="Material:") | |||||
| col.prop(rl, "material_override", text="") | |||||
| col.separator() | |||||
| col.prop(rl, "samples") | |||||
| col = split.column() | col = layout.column() | ||||
| col.prop(rl, "use_sky", "Use Environment") | col.prop(rl, "use_sky", "Use Environment") | ||||
| col.prop(rl, "use_ao", "Use AO") | col.prop(rl, "use_ao", "Use AO") | ||||
| col.prop(rl, "use_solid", "Use Surfaces") | col.prop(rl, "use_solid", "Use Surfaces") | ||||
| col.prop(rl, "use_strand", "Use Hair") | col.prop(rl, "use_strand", "Use Hair") | ||||
| class CYCLES_RENDER_PT_layer_passes(CyclesButtonsPanel, Panel): | class CYCLES_RENDER_PT_layer_passes(CyclesButtonsPanel, Panel): | ||||
| bl_label = "Passes" | bl_label = "Passes" | ||||
| bl_context = "render_layer" | bl_context = "render_layer" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| def draw(self, context): | def draw(self, context): | ||||
| import _cycles | import _cycles | ||||
| layout = self.layout | layout = self.layout | ||||
| scene = context.scene | scene = context.scene | ||||
| rd = scene.render | rd = scene.render | ||||
| rl = rd.layers.active | rl = scene.render_layers.active | ||||
| crl = rl.cycles | crl = rl.cycles | ||||
| split = layout.split() | split = layout.split() | ||||
| col = split.column() | col = split.column() | ||||
| col.prop(rl, "use_pass_combined") | col.prop(rl, "use_pass_combined") | ||||
| col.prop(rl, "use_pass_z") | col.prop(rl, "use_pass_z") | ||||
| col.prop(rl, "use_pass_mist") | col.prop(rl, "use_pass_mist") | ||||
| ▲ Show 20 Lines • Show All 99 Lines • ▼ Show 20 Lines | |||||
| class CYCLES_RENDER_PT_denoising(CyclesButtonsPanel, Panel): | class CYCLES_RENDER_PT_denoising(CyclesButtonsPanel, Panel): | ||||
| bl_label = "Denoising" | bl_label = "Denoising" | ||||
| bl_context = "render_layer" | bl_context = "render_layer" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| def draw_header(self, context): | def draw_header(self, context): | ||||
| rd = context.scene.render | scene = context.scene | ||||
| rl = rd.layers.active | rl = scene.render_layers.active | ||||
| crl = rl.cycles | crl = rl.cycles | ||||
| cscene = context.scene.cycles | cscene = scene.cycles | ||||
| layout = self.layout | layout = self.layout | ||||
| layout.prop(crl, "use_denoising", text="") | layout.prop(crl, "use_denoising", text="") | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| scene = context.scene | scene = context.scene | ||||
| cscene = scene.cycles | cscene = scene.cycles | ||||
| rd = scene.render | rl = scene.render_layers.active | ||||
| rl = rd.layers.active | |||||
| crl = rl.cycles | crl = rl.cycles | ||||
| layout.active = crl.use_denoising | layout.active = crl.use_denoising | ||||
| split = layout.split() | split = layout.split() | ||||
| col = split.column() | col = split.column() | ||||
| sub = col.column(align=True) | sub = col.column(align=True) | ||||
| ▲ Show 20 Lines • Show All 487 Lines • ▼ Show 20 Lines | class CYCLES_WORLD_PT_mist(CyclesButtonsPanel, Panel): | ||||
| bl_label = "Mist Pass" | bl_label = "Mist Pass" | ||||
| bl_context = "world" | bl_context = "world" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| if CyclesButtonsPanel.poll(context): | if CyclesButtonsPanel.poll(context): | ||||
| if context.world: | if context.world: | ||||
| for rl in context.scene.render.layers: | for rl in context.scene.render_layers: | ||||
| if rl.use_pass_mist: | if rl.use_pass_mist: | ||||
| return True | return True | ||||
| return False | return False | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| ▲ Show 20 Lines • Show All 731 Lines • Show Last 20 Lines | |||||