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")
28 layout.itemR(rd, "render_raytracing", text="Ray Tracing")
29 layout.itemR(rd, "octree_resolution")
32 layout.itemR(rd, "alpha_mode")
34 layout.itemR(rd, "free_image_textures")
36 class RENDER_PT_image(RenderButtonsPanel):
39 def draw(self, context):
46 rd = scene.render_data
49 layout.itemR(rd, "resolution_x", text="SizeX")
50 layout.itemR(rd, "resolution_y", text="SizeY")
51 layout.itemR(rd, "pixel_aspect_x", text="AspX")
52 layout.itemR(rd, "pixel_aspect_y", text="AspY")
55 layout.itemR(rd, "quality")
58 layout.itemR(rd, "placeholders")
59 layout.itemR(rd, "no_overwrite")
60 layout.itemR(rd, "file_extensions")
63 layout.itemR(rd, "crop_to_border")
65 class RENDER_PT_antialiasing(RenderButtonsPanel):
66 __label__ = "Anti-Aliasing"
68 def draw(self, context):
75 rd = scene.render_data
78 layout.itemR(rd, "antialiasing", text="Enable")
79 layout.itemR(rd, "filter_size")
81 layout.itemR(rd, "pixel_filter")
82 layout.itemR(rd, "antialiasing_samples", text="Samples")
86 layout.itemR(rd, "save_buffers")
88 layout.itemR(rd, "full_sample")
90 class RENDER_PT_render(RenderButtonsPanel):
93 def draw(self, context):
100 rd = scene.render_data
103 layout.itemO("SCREEN_OT_render", text="RENDER", icon=0) # ICON_SCENE
104 #layout.itemO("SCREEN_OT_render", text="ANIM", icon=0) # "anim", 1
107 layout.itemR(scene, "start_frame", text="Start")
108 layout.itemR(scene, "end_frame", text="End")
109 layout.itemR(scene, "current_frame", text="Frame")
112 layout.itemR(rd, "fps")
113 layout.itemR(rd, "fps_base",text="/")
114 layout.itemR(scene, "frame_step", text="Step")
117 layout.itemR(rd, "do_composite")
118 layout.itemR(rd, "do_sequence")
121 layout.itemL(text="General:")
124 layout.itemR(rd, "resolution_percentage", text="Size ")
125 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)