4 class RenderButtonsPanel(bpy.types.Panel):
5 __space_type__ = "BUTTONS_WINDOW"
6 __region_type__ = "WINDOW"
9 class RENDER_PT_shading(RenderButtonsPanel):
12 def draw(self, context):
19 rd = scene.render_data
22 layout.itemR(rd, "render_shadows", text="Shadows")
23 layout.itemR(rd, "render_sss", text="SSS")
24 layout.itemR(rd, "render_envmaps", text="EnvMap")
25 layout.itemR(rd, "render_radiosity", text="Radio")
26 layout.itemR(rd, "render_raytracing", text="Ray Tracing")
27 layout.itemR(rd, "octree_resolution")
30 layout.itemR(rd, "alpha_mode")
32 class RENDER_PT_image(RenderButtonsPanel):
34 __context__ = "render"
36 def draw(self, context):
43 rd = scene.render_data
46 layout.itemR(rd, "resolution_x", text="SizeX")
47 layout.itemR(rd, "resolution_y", text="SizeY")
48 layout.itemR(rd, "pixel_aspect_x", text="AspX")
49 layout.itemR(rd, "pixel_aspect_y", text="AspY")
52 layout.itemR(rd, "crop_to_border")
54 class RENDER_PT_antialiasing(RenderButtonsPanel):
55 __label__ = "Anti-Aliasing"
56 __context__ = "render"
58 def draw(self, context):
65 rd = scene.render_data
68 layout.itemR(rd, "antialiasing", text="Enable")
69 layout.itemR(rd, "antialiasing_samples", text="Samples")
70 layout.itemR(rd, "pixel_filter")
71 layout.itemR(rd, "filter_size")
73 class RENDER_PT_render(RenderButtonsPanel):
75 __context__ = "render"
77 def draw(self, context):
84 rd = scene.render_data
87 layout.itemO("SCREEN_OT_render", text="RENDER", icon=0) # ICON_SCENE
88 #layout.itemO("SCREEN_OT_render", text="ANIM", icon=0) # "anim", 1
91 layout.itemR(scene, "start_frame", text="Start")
92 layout.itemR(scene, "end_frame", text="End")
93 layout.itemR(scene, "current_frame", text="Frame")
96 layout.itemR(rd, "do_composite")
97 layout.itemR(rd, "do_sequence")
100 layout.itemL(text="General")
103 layout.itemR(rd, "resolution_percentage", text="Size ")
104 layout.itemR(rd, "dither_intensity")
107 layout.itemR(rd, "parts_x")
108 layout.itemR(rd, "parts_y")
111 layout.itemR(rd, "threads")
112 layout.itemR(rd, "threads_mode")
115 layout.itemR(rd, "fields", text="Fields")
116 layout.itemR(rd, "field_order", text="Order")
117 layout.itemR(rd, "fields_still", text="Still")
120 layout.itemL(text="Extra:")
122 layout.itemR(rd, "border", text="Border Render")
123 layout.itemR(rd, "panorama")
125 bpy.types.register(RENDER_PT_shading)
126 bpy.types.register(RENDER_PT_image)
127 bpy.types.register(RENDER_PT_antialiasing)
128 bpy.types.register(RENDER_PT_render)