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):
16 rd = scene.render_data
18 layout.split(number=2)
22 sub.itemR(rd, "render_shadows", text="Shadows")
23 sub.itemR(rd, "render_sss", text="SSS")
24 sub.itemR(rd, "render_envmaps", text="EnvMap")
25 sub.itemR(rd, "render_radiosity", text="Radio")
30 subsub.itemR(rd, "render_raytracing", text="Ray Tracing")
31 if (rd.render_raytracing):
32 subsub.itemR(rd, "octree_resolution", text="Octree")
34 sub.itemR(rd, "alpha_mode")
36 class RENDER_PT_image(RenderButtonsPanel):
39 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")
53 sub.itemR(rd, "image_type")
55 sub.itemR(rd, "file_extensions")
56 sub.itemR(rd, "color_mode")
57 if rd.image_type in ("AVIJPEG", "JPEG"):
59 sub.itemR(rd, "quality")
61 class RENDER_PT_antialiasing(RenderButtonsPanel):
62 __label__ = "Anti-Aliasing"
64 def draw(self, context):
68 rd = scene.render_data
71 layout.itemR(rd, "antialiasing", text="Enable")
74 layout.itemL(text="Samples:")
75 layout.itemR(rd, "antialiasing_samples", expand=True)
77 layout.itemR(rd, "pixel_filter")
78 layout.itemR(rd, "filter_size")
81 layout.itemR(rd, "save_buffers")
83 layout.itemR(rd, "full_sample")
85 class RENDER_PT_render(RenderButtonsPanel):
88 def draw(self, context):
92 rd = scene.render_data
95 layout.itemO("SCREEN_OT_render", text="RENDER", icon=0) # ICON_SCENE
96 #layout.itemO("SCREEN_OT_render", text="ANIM", icon=0) # "anim", 1
99 layout.itemR(scene, "start_frame", text="Start")
100 layout.itemR(rd, "fps")
101 layout.itemR(scene, "current_frame", text="Frame")
104 layout.itemR(scene, "end_frame", text="End")
105 layout.itemR(rd, "fps_base",text="/")
106 layout.itemR(scene, "frame_step", text="Step")
109 layout.itemR(rd, "do_composite")
110 layout.itemR(rd, "do_sequence")
113 layout.itemL(text="General:")
116 layout.itemR(rd, "resolution_percentage", text="Size ")
117 layout.itemR(rd, "dither_intensity")
118 layout.itemR(rd, "parts_x")
119 layout.itemR(rd, "parts_y")
121 layout.split(number=2)
126 subsub.itemL(text="Threads Mode:")
127 subsub.itemR(rd, "threads_mode", expand=True)
128 if rd.threads_mode == 'THREADS_FIXED':
129 subsub.itemR(rd, "threads")
133 subsub.itemL(text="Distributed Rendering:")
134 subsub.itemR(rd, "placeholders")
135 subsub.itemR(rd, "no_overwrite")
138 subsub.itemR(rd, "fields", text="Fields")
140 subsub.itemR(rd, "fields_still", text="Still")
141 subsub.itemR(rd, "field_order", text="Order")
146 subsub.itemL(text="Extra:")
147 subsub.itemR(rd, "panorama")
148 subsub.itemR(rd, "backbuf")
149 subsub.itemR(rd, "free_image_textures")
153 subsub.itemL(text="Border:")
154 subsub.itemR(rd, "border", text="Border Render")
156 subsub.itemR(rd, "crop_to_border")
158 bpy.types.register(RENDER_PT_render)
159 bpy.types.register(RENDER_PT_antialiasing)
160 bpy.types.register(RENDER_PT_shading)
161 bpy.types.register(RENDER_PT_image)