2.5 - Restored access to the Image-Type setting
[blender.git] / release / ui / buttons_scene.py
1
2 import bpy
3
4 class RenderButtonsPanel(bpy.types.Panel):
5         __space_type__ = "BUTTONS_WINDOW"
6         __region_type__ = "WINDOW"
7         __context__ = "scene"
8
9 class RENDER_PT_shading(RenderButtonsPanel):
10         __label__ = "Shading"
11
12         def draw(self, context):
13                 scene = context.scene
14                 layout = self.layout
15
16                 rd = scene.render_data
17
18                 layout.column_flow()
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")
23                 
24                 layout.row()
25                 layout.itemR(rd, "render_raytracing", text="Ray Tracing")
26                 layout.itemR(rd, "octree_resolution")
27
28                 layout.row()
29                 layout.itemR(rd, "alpha_mode")
30                 layout.row()
31                 layout.itemR(rd, "free_image_textures")
32
33 class RENDER_PT_image(RenderButtonsPanel):
34         __label__ = "Image"
35
36         def draw(self, context):
37                 scene = context.scene
38                 layout = self.layout
39
40                 rd = scene.render_data
41
42                 layout.column_flow()
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")
47                 
48                 layout.row()
49                 layout.itemR(rd, "quality")
50                 layout.itemR(rd, "color_mode")
51                 
52                 layout.row()
53                 layout.itemR(rd, "image_type")
54                 
55                 layout.row()
56                 layout.itemR(rd, "placeholders")
57                 layout.itemR(rd, "no_overwrite")
58                 layout.itemR(rd, "file_extensions")
59                 
60                 layout.row()
61                 layout.itemR(rd, "crop_to_border")
62
63 class RENDER_PT_antialiasing(RenderButtonsPanel):
64         __label__ = "Anti-Aliasing"
65
66         def draw(self, context):
67                 scene = context.scene
68                 layout = self.layout
69
70                 rd = scene.render_data
71
72                 layout.row()
73                 layout.itemR(rd, "antialiasing", text="Enable")
74                 layout.itemR(rd, "filter_size")
75                 layout.row()
76                 layout.itemR(rd, "pixel_filter")
77                 layout.itemR(rd, "antialiasing_samples", text="Samples")
78                 
79                 
80                 layout.row()
81                 layout.itemR(rd, "save_buffers")
82                 if (rd.save_buffers):
83                         layout.itemR(rd, "full_sample")
84
85 class RENDER_PT_render(RenderButtonsPanel):
86         __label__ = "Render"
87
88         def draw(self, context):
89                 scene = context.scene
90                 layout = self.layout
91
92                 rd = scene.render_data
93
94                 layout.row()
95                 layout.itemO("SCREEN_OT_render", text="RENDER", icon=0) # ICON_SCENE
96                 #layout.itemO("SCREEN_OT_render", text="ANIM", icon=0) # "anim", 1
97
98                 layout.row()
99                 layout.itemR(scene, "start_frame", text="Start")
100                 layout.itemR(scene, "end_frame", text="End")
101                 layout.itemR(scene, "current_frame", text="Frame")
102                 
103                 layout.row()
104                 layout.itemR(rd, "fps")
105                 layout.itemR(rd, "fps_base",text="/")
106                 layout.itemR(scene, "frame_step", text="Step")
107
108                 layout.row()
109                 layout.itemR(rd, "do_composite")
110                 layout.itemR(rd, "do_sequence")
111
112                 layout.row()
113                 layout.itemL(text="General:")
114
115                 layout.column_flow()
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")
120
121                 layout.row()
122                 layout.itemR(rd, "threads_mode")
123                 if (rd.threads_mode == 'THREADS_FIXED'):
124                         layout.itemR(rd, "threads")
125                 
126                 layout.row()
127                 layout.itemR(rd, "fields", text="Fields")
128                 layout.itemR(rd, "field_order", text="Order")
129                 layout.itemR(rd, "fields_still", text="Still")
130
131                 layout.row()
132                 layout.itemL(text="Extra:")
133                 layout.row()
134                 layout.itemR(rd, "border", text="Border Render")
135                 layout.itemR(rd, "panorama")
136                 layout.itemR(rd, "backbuf")
137
138 bpy.types.register(RENDER_PT_render)
139 bpy.types.register(RENDER_PT_antialiasing)
140 bpy.types.register(RENDER_PT_shading)
141 bpy.types.register(RENDER_PT_image)