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
19 layout.itemR(rd, "render_shadows", text="Shadows")
20 layout.itemR(rd, "render_sss", text="SSS")
21 layout.itemR(rd, "render_envmaps", text="EnvMap")
22 layout.itemR(rd, "render_radiosity", text="Radio")
25 layout.itemR(rd, "render_raytracing", text="Ray Tracing")
26 layout.itemR(rd, "octree_resolution")
29 layout.itemR(rd, "alpha_mode")
31 layout.itemR(rd, "free_image_textures")
33 class RENDER_PT_image(RenderButtonsPanel):
36 def draw(self, context):
40 rd = scene.render_data
43 layout.itemR(rd, "resolution_x", text="SizeX")
44 layout.itemR(rd, "resolution_y", text="SizeY")
45 layout.itemR(rd, "pixel_aspect_x", text="AspX")
46 layout.itemR(rd, "pixel_aspect_y", text="AspY")
49 layout.itemR(rd, "quality")
50 layout.itemR(rd, "color_mode")
53 layout.itemR(rd, "placeholders")
54 layout.itemR(rd, "no_overwrite")
55 layout.itemR(rd, "file_extensions")
58 layout.itemR(rd, "crop_to_border")
60 class RENDER_PT_antialiasing(RenderButtonsPanel):
61 __label__ = "Anti-Aliasing"
63 def draw(self, context):
67 rd = scene.render_data
70 layout.itemR(rd, "antialiasing", text="Enable")
71 layout.itemR(rd, "filter_size")
73 layout.itemR(rd, "pixel_filter")
74 layout.itemR(rd, "antialiasing_samples", text="Samples")
78 layout.itemR(rd, "save_buffers")
80 layout.itemR(rd, "full_sample")
82 class RENDER_PT_render(RenderButtonsPanel):
85 def draw(self, context):
89 rd = scene.render_data
92 layout.itemO("SCREEN_OT_render", text="RENDER", icon=0) # ICON_SCENE
93 #layout.itemO("SCREEN_OT_render", text="ANIM", icon=0) # "anim", 1
96 layout.itemR(scene, "start_frame", text="Start")
97 layout.itemR(scene, "end_frame", text="End")
98 layout.itemR(scene, "current_frame", text="Frame")
101 layout.itemR(rd, "fps")
102 layout.itemR(rd, "fps_base",text="/")
103 layout.itemR(scene, "frame_step", text="Step")
106 layout.itemR(rd, "do_composite")
107 layout.itemR(rd, "do_sequence")
110 layout.itemL(text="General:")
113 layout.itemR(rd, "resolution_percentage", text="Size ")
114 layout.itemR(rd, "dither_intensity")
115 layout.itemR(rd, "parts_x")
116 layout.itemR(rd, "parts_y")
119 layout.itemR(rd, "threads_mode")
120 if (rd.threads_mode == 'THREADS_FIXED'):
121 layout.itemR(rd, "threads")
124 layout.itemR(rd, "fields", text="Fields")
125 layout.itemR(rd, "field_order", text="Order")
126 layout.itemR(rd, "fields_still", text="Still")
129 layout.itemL(text="Extra:")
131 layout.itemR(rd, "border", text="Border Render")
132 layout.itemR(rd, "panorama")
133 layout.itemR(rd, "backbuf")
135 bpy.types.register(RENDER_PT_render)
136 bpy.types.register(RENDER_PT_antialiasing)
137 bpy.types.register(RENDER_PT_shading)
138 bpy.types.register(RENDER_PT_image)