4 class RENDER_PT_shading(bpy.types.Panel):
8 def draw(self, context):
15 rd = scene.render_data
18 layout.itemR(rd, "render_shadows", text="Shadows")
19 layout.itemR(rd, "render_sss", text="SSS")
20 layout.itemR(rd, "render_envmaps", text="EnvMap")
21 layout.itemR(rd, "render_radiosity", text="Radio")
22 layout.itemR(rd, "render_raytracing", text="Ray Tracing")
23 layout.itemR(rd, "octree_resolution")
26 layout.itemR(rd, "alpha_mode")
28 class RENDER_PT_image(bpy.types.Panel):
30 __context__ = "render"
32 def draw(self, context):
39 rd = scene.render_data
42 layout.itemR(rd, "resolution_x", text="SizeX")
43 layout.itemR(rd, "resolution_y", text="SizeY")
44 layout.itemR(rd, "pixel_aspect_x", text="AspX")
45 layout.itemR(rd, "pixel_aspect_y", text="AspY")
48 layout.itemR(rd, "crop_to_border")
50 class RENDER_PT_antialiasing(bpy.types.Panel):
51 __label__ = "Anti-Aliasing"
52 __context__ = "render"
54 def draw(self, context):
61 rd = scene.render_data
64 layout.itemR(rd, "antialiasing", text="Enable")
65 layout.itemR(rd, "antialiasing_samples", text="Samples")
66 layout.itemR(rd, "pixel_filter")
67 layout.itemR(rd, "filter_size")
69 class RENDER_PT_render(bpy.types.Panel):
71 __context__ = "render"
73 def draw(self, context):
80 rd = scene.render_data
83 layout.itemO("SCREEN_OT_render", text="RENDER", icon=0) # ICON_SCENE
84 #layout.itemO("SCREEN_OT_render", text="ANIM", icon=0) # "anim", 1
87 layout.itemR(scene, "start_frame", text="Start")
88 layout.itemR(scene, "end_frame", text="End")
89 layout.itemR(scene, "current_frame", text="Frame")
92 layout.itemR(rd, "do_composite")
93 layout.itemR(rd, "do_sequence")
96 layout.itemL(text="General")
99 layout.itemR(rd, "resolution_percentage", text="Size ")
100 layout.itemR(rd, "dither_intensity")
103 layout.itemR(rd, "parts_x")
104 layout.itemR(rd, "parts_y")
107 layout.itemR(rd, "threads")
108 layout.itemR(rd, "threads_mode")
111 layout.itemR(rd, "fields", text="Fields")
112 layout.itemR(rd, "field_order", text="Order")
113 layout.itemR(rd, "fields_still", text="Still")
116 layout.itemL(text="Extra:")
118 layout.itemR(rd, "border", text="Border Render")
119 layout.itemR(rd, "panorama")
121 bpy.ui.addPanel(RENDER_PT_shading, "BUTTONS_WINDOW", "WINDOW")
122 bpy.ui.addPanel(RENDER_PT_image, "BUTTONS_WINDOW", "WINDOW")
123 bpy.ui.addPanel(RENDER_PT_antialiasing, "BUTTONS_WINDOW", "WINDOW")
124 bpy.ui.addPanel(RENDER_PT_render, "BUTTONS_WINDOW", "WINDOW")