Experemental XML UI, define panels/menus/headers which load at startup like python...
[blender.git] / release / scripts / ui / properties_render_test.xml
1 <ui>
2         <panel identifier="RENDER_PT_stamp_test" label="Stamp (XML)" space_type="PROPERTIES" region_type="WINDOW" context="render" default_closed="true">
3                 <draw_header>
4                         <prop data="context.scene.render" property="render_stamp" text=""/>
5                 </draw_header>
6
7                 <draw>
8                         <split>
9                                 <column>
10                                         <prop data="context.scene.render" property="stamp_time" text="Time"/>
11                                         <prop data="context.scene.render" property="stamp_date" text="Date"/>
12                                         <prop data="context.scene.render" property="stamp_render_time" text="RenderTime"/>
13                                         <prop data="context.scene.render" property="stamp_frame" text="Frame"/>
14                                         <prop data="context.scene.render" property="stamp_scene" text="Scene"/>
15                                         <prop data="context.scene.render" property="stamp_camera" text="Camera"/>
16                                         <prop data="context.scene.render" property="stamp_filename" text="Filename"/>
17                                         <prop data="context.scene.render" property="stamp_marker" text="Marker"/>
18                                         <prop data="context.scene.render" property="stamp_sequencer_strip" text="Seq. Strip"/>
19                                 </column>
20                                 <column>
21                                         <active expr="context.scene.render.render_stamp"/>
22                                         <prop data="context.scene.render" property="stamp_foreground" slider="true"/>
23                                         <prop data="context.scene.render" property="stamp_background" slider="true"/>
24                                         <separator/>
25                                         <prop data="context.scene.render" property="stamp_font_size" text="Font Size"/>
26                                 </column>
27                         </split>
28                         <split percentage="0.2">
29                                 <prop data="context.scene.render" property="stamp_note" text="Note"/>
30                                 <row>
31                                         <active expr="context.scene.render.stamp_note"/>
32                                         <prop data="context.scene.render" property="stamp_note_text" text=""/>
33                                 </row>
34                         </split>
35                 </draw>
36         </panel>
37
38         <panel identifier="RENDER_PT_dimensions_test" label="Dimensions (XML)" space_type="PROPERTIES" region_type="WINDOW" context="render">
39                 <draw>
40                         <row align="true">
41                                 <menu menu="RENDER_MT_presets"/>
42                                 <operator operator="render.preset_add" text="" icon="ZOOMIN"/>
43                         </row>
44                         <split>
45                                 <column>
46                                         <column align="true">
47                                                 <label text="Resolution:"/>
48                                                 <prop data="context.scene.render" property="resolution_x" text="X"/>
49                                                 <prop data="context.scene.render" property="resolution_y" text="Y"/>
50                                                 <prop data="context.scene.render" property="resolution_percentage" text=""/>
51
52                                                 <label text="Aspect Ratio:"/>
53                                                 <prop data="context.scene.render" property="pixel_aspect_x" text="X"/>
54                                                 <prop data="context.scene.render" property="pixel_aspect_y" text="Y"/>
55                                         </column>
56                                         <row>
57                                                 <prop data="context.scene.render" property="use_border" text="Border"/>
58                                                 <row>
59                                                         <active expr="context.scene.render.use_border"/>
60                                                         <prop data="context.scene.render" property="crop_to_border" text="Crop"/>
61                                                 </row>
62                                         </row>
63                                 </column>
64                                 <column>
65                                         <column align="true">
66                                                 <label text="Frame Range:"/>
67                                                 <prop data="context.scene" property="frame_start" text="Start"/>
68                                                 <prop data="context.scene" property="frame_end" text="End"/>
69                                                 <prop data="context.scene" property="frame_step" text="Step"/>
70
71                                                 <label text="Frame Rate:"/>
72                                                 <prop data="context.scene.render" property="fps"/>
73                                                 <prop data="context.scene.render" property="fps_base" text="/"/>
74                                         </column>
75                                 </column>
76                         </split>
77                 </draw>
78         </panel>
79 </ui>