* Some minor layout cleanup.
split = layout.split()
sub = split.column()
+ sub.itemR(lamp, "spot_size", text="Size")
+ sub.itemR(lamp, "spot_blend", text="Blend")
sub.itemR(lamp, "square")
- sub.itemR(lamp, "spot_size")
- sub.itemR(lamp, "spot_blend")
sub = split.column()
sub.itemR(lamp, "halo")
if lamp.halo:
- sub.itemR(lamp, "halo_intensity")
+ sub.itemR(lamp, "halo_intensity", text="Intensity")
if lamp.shadow_method == 'BUFFER_SHADOW':
- sub.itemR(lamp, "halo_step")
+ sub.itemR(lamp, "halo_step", text="Step")
bpy.types.register(DATA_PT_lamp)
bpy.types.register(DATA_PT_shadow)
split = layout.split()
- sub = split.column()
- sub.itemL(text="General Settings:")
- sub.itemR(halo, "size")
- sub.itemR(halo, "hardness")
- sub.itemR(halo, "add", slider=True)
-
- sub = split.column()
+ col = split.column(align=True)
+ col.itemL(text="General Settings:")
+ col.itemR(halo, "size")
+ col.itemR(halo, "hardness")
+ col.itemR(halo, "add", slider=True)
+
+ col.itemL(text="Options:")
+ col.itemR(halo, "use_texture", text="Texture")
+ col.itemR(halo, "use_vertex_normal", text="Vertex Normal")
+ col.itemR(halo, "xalpha")
+ col.itemR(halo, "shaded")
+ col.itemR(halo, "soft")
+
+ col = split.column()
+ sub = col.column(align=True)
sub.itemL(text="Elements:")
sub.itemR(halo, "ring")
sub.itemR(halo, "lines")
sub.itemR(halo, "star")
sub.itemR(halo, "flare_mode")
-
- row = layout.row()
- sub = row.column()
- sub.itemL(text="Options:")
- sub.itemR(halo, "use_texture", text="Texture")
- sub.itemR(halo, "use_vertex_normal", text="Vertex Normal")
- sub.itemR(halo, "xalpha")
- sub.itemR(halo, "shaded")
- sub.itemR(halo, "soft")
-
- sub = row.column()
+ sub = col.column()
if (halo.ring):
sub.itemR(halo, "rings")
if (halo.lines):
if (halo.star):
sub.itemR(halo, "star_tips")
if (halo.flare_mode):
+ sub = col.column(align=True)
sub.itemL(text="Flare:")
sub.itemR(halo, "flare_size", text="Size")
sub.itemR(halo, "flare_subsize", text="Subsize")
if rd.do_composite:
row = layout.row()
row.itemR(rd, "free_image_textures")
-
- row = layout.row()
- row.itemL(text="Threads:")
- row.itemL(text="Tiles:")
-
+
split = layout.split()
sub = split.column(align=True)
+ sub.itemL(text="Threads:")
sub.row().itemR(rd, "threads_mode", expand=True)
if rd.threads_mode == 'THREADS_FIXED':
sub.itemR(rd, "threads")
sub = split.column(align=True)
+ sub.itemL(text="Tiles:")
sub.itemR(rd, "parts_x", text="X")
sub.itemR(rd, "parts_y", text="Y")
split = layout.split()
- col = split.column(align=True)
- col.itemL(text="Resolution:")
- col.itemR(rd, "resolution_x", text="X")
- col.itemR(rd, "resolution_y", text="Y")
- col.itemR(rd, "resolution_percentage", text="")
+ col = split.column()
+ sub = col.column(align=True)
+ sub.itemL(text="Resolution:")
+ sub.itemR(rd, "resolution_x", text="X")
+ sub.itemR(rd, "resolution_y", text="Y")
+ sub.itemR(rd, "resolution_percentage", text="")
- col.itemL(text="Aspect Ratio:")
- col.itemR(rd, "pixel_aspect_x", text="X")
- col.itemR(rd, "pixel_aspect_y", text="Y")
+ sub.itemL(text="Aspect Ratio:")
+ sub.itemR(rd, "pixel_aspect_x", text="X")
+ sub.itemR(rd, "pixel_aspect_y", text="Y")
- col.itemR(rd, "border", text="Border")
+ sub = col.column()
+ sub.itemR(rd, "border", text="Border")
if rd.border:
- col.itemR(rd, "crop_to_border")
+ sub.itemR(rd, "crop_to_border")
col = split.column(align=True)
col.itemL(text="Frame Range:")