Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_render.py
| Show First 20 Lines • Show All 125 Lines • ▼ Show 20 Lines | def draw_framerate(sub, rd): | ||||
| sub.prop(rd, "fps_base", text="/") | sub.prop(rd, "fps_base", text="/") | ||||
| 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 | ||||
| row = layout.row(align=True) | col_a = layout.column(align=True) | ||||
| row = col_a.row(align=True) | |||||
| row.menu("RENDER_MT_presets", text=bpy.types.RENDER_MT_presets.bl_label) | row.menu("RENDER_MT_presets", text=bpy.types.RENDER_MT_presets.bl_label) | ||||
| row.separator() | |||||
| row.operator("render.preset_add", text="", icon='ZOOMIN') | row.operator("render.preset_add", text="", icon='ZOOMIN') | ||||
| row.operator("render.preset_add", text="", icon='ZOOMOUT').remove_active = True | row.operator("render.preset_add", text="", icon='ZOOMOUT').remove_active = True | ||||
| split = layout.split() | split = col_a.split(0.3333, align=True) | ||||
| col = split.column() | col = split.column(align=True) | ||||
| sub = col.column(align=True) | sub = col.column(align=True) | ||||
| sub.label(text="Resolution:") | |||||
| sub.prop(rd, "resolution_x", text="X") | sub.prop(rd, "resolution_x", text="X") | ||||
| sub.prop(rd, "resolution_y", text="Y") | sub.prop(rd, "resolution_y", text="Y") | ||||
| sub.prop(rd, "resolution_percentage", text="") | sub.prop(rd, "resolution_percentage", text="") | ||||
| sub.label(text="Aspect Ratio:") | sub.label(text="Aspect Ratio:") | ||||
| sub.prop(rd, "pixel_aspect_x", text="X") | sub.prop(rd, "pixel_aspect_x", text="X") | ||||
| sub.prop(rd, "pixel_aspect_y", text="Y") | sub.prop(rd, "pixel_aspect_y", text="Y") | ||||
| row = col.row() | row = col.row(align=True) | ||||
| row.prop(rd, "use_border", text="Border") | row.prop(rd, "use_border", text="Border") | ||||
| sub = row.row() | sub = row.row(align=True) | ||||
| sub.active = rd.use_border | sub.active = rd.use_border | ||||
| sub.prop(rd, "use_crop_to_border", text="Crop") | sub.prop(rd, "use_crop_to_border", text="Crop") | ||||
| col = split.column() | col = split.column(align=True) | ||||
| sub = col.column(align=True) | sub = col.column(align=True) | ||||
| sub.label(text="Frame Range:") | |||||
| sub.prop(scene, "frame_start") | sub.prop(scene, "frame_start") | ||||
| sub.prop(scene, "frame_end") | sub.label("") | ||||
| #~ sub.prop(scene, "frame_end") | |||||
| sub.prop(scene, "frame_step") | sub.prop(scene, "frame_step") | ||||
| sub.label(text="Frame Rate:") | sub.label(text="Frame Rate:") | ||||
| self.draw_framerate(sub, rd) | self.draw_framerate(sub, rd) | ||||
| subrow = sub.row(align=True) | subrow = sub.row(align=True) | ||||
| subrow.label(text="Time Remapping:") | subrow.label(text="Time Remapping:") | ||||
| subrow = sub.row(align=True) | subrow = sub.row(align=True) | ||||
| subrow.prop(rd, "frame_map_old", text="Old") | subrow.prop(rd, "frame_map_old", text="Old") | ||||
| subrow.prop(rd, "frame_map_new", text="New") | subrow.prop(rd, "frame_map_new", text="New") | ||||
| col = split.column(align=True) | |||||
| col.template_ID_preview(context.scene.objects.active.material_slots[0], "material") | |||||
| col_a.prop(scene, "frame_end") | |||||
| col_a = layout.column(align=True) | |||||
| sub = col_a.row(align=True) | |||||
| sub.prop(rd, "resolution_x", text="X") | |||||
| sub.prop(scene, "frame_start") | |||||
| sub = col_a.row(align=True) | |||||
| sub.prop(rd, "resolution_y", text="Y") | |||||
| sub.label("") | |||||
| sub = col_a.row(align=True) | |||||
| sub.prop(scene, "frame_end") | |||||
| sub.prop(scene, "frame_step") | |||||
| class RENDER_PT_antialiasing(RenderButtonsPanel, Panel): | class RENDER_PT_antialiasing(RenderButtonsPanel, Panel): | ||||
| bl_label = "Anti-Aliasing" | bl_label = "Anti-Aliasing" | ||||
| COMPAT_ENGINES = {'BLENDER_RENDER'} | COMPAT_ENGINES = {'BLENDER_RENDER'} | ||||
| def draw_header(self, context): | def draw_header(self, context): | ||||
| rd = context.scene.render | rd = context.scene.render | ||||
| ▲ Show 20 Lines • Show All 392 Lines • Show Last 20 Lines | |||||