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 layout.itemR(rd, "free_image_textures")
34 class RENDER_PT_image(RenderButtonsPanel):
36 __context__ = "render"
38 def draw(self, context):
45 rd = scene.render_data
48 layout.itemR(rd, "resolution_x", text="SizeX")
49 layout.itemR(rd, "resolution_y", text="SizeY")
50 layout.itemR(rd, "pixel_aspect_x", text="AspX")
51 layout.itemR(rd, "pixel_aspect_y", text="AspY")
54 layout.itemR(rd, "quality")
57 layout.itemR(rd, "placeholders")
58 layout.itemR(rd, "no_overwrite")
59 layout.itemR(rd, "file_extensions")
62 layout.itemR(rd, "crop_to_border")
64 class RENDER_PT_antialiasing(RenderButtonsPanel):
65 __label__ = "Anti-Aliasing"
66 __context__ = "render"
68 def draw(self, context):
75 rd = scene.render_data
78 layout.itemR(rd, "antialiasing", text="Enable")
79 layout.itemR(rd, "antialiasing_samples", text="Samples")
80 layout.itemR(rd, "pixel_filter")
81 layout.itemR(rd, "filter_size")
84 layout.itemR(rd, "save_buffers")
86 layout.itemR(rd, "full_sample")
88 class RENDER_PT_render(RenderButtonsPanel):
90 __context__ = "render"
92 def draw(self, context):
99 rd = scene.render_data
102 layout.itemO("SCREEN_OT_render", text="RENDER", icon=0) # ICON_SCENE
103 #layout.itemO("SCREEN_OT_render", text="ANIM", icon=0) # "anim", 1
106 layout.itemR(scene, "start_frame", text="Start")
107 layout.itemR(scene, "end_frame", text="End")
108 layout.itemR(scene, "current_frame", text="Frame")
110 layout.itemR(rd, "fps")
111 layout.itemR(rd, "fps_base",text="/")
114 layout.itemR(rd, "do_composite")
115 layout.itemR(rd, "do_sequence")
118 layout.itemL(text="General")
121 layout.itemR(rd, "resolution_percentage", text="Size ")
123 layout.itemR(rd, "dither_intensity")
126 layout.itemR(rd, "parts_x")
127 layout.itemR(rd, "parts_y")
130 layout.itemR(rd, "threads_mode")
131 if (rd.threads_mode == 'THREADS_FIXED'):
132 layout.itemR(rd, "threads")
135 layout.itemR(rd, "fields", text="Fields")
136 layout.itemR(rd, "field_order", text="Order")
137 layout.itemR(rd, "fields_still", text="Still")
140 layout.itemL(text="Extra:")
142 layout.itemR(rd, "border", text="Border Render")
143 layout.itemR(rd, "panorama")
144 layout.itemR(rd, "backbuf")
146 bpy.types.register(RENDER_PT_render)
147 bpy.types.register(RENDER_PT_antialiasing)
148 bpy.types.register(RENDER_PT_shading)
149 bpy.types.register(RENDER_PT_image)