[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [1671] trunk/py/scripts/addons/ render_povray/ui.py: 2.5 Povray Export UI:
Thomas Dinges
blender at dingto.de
Wed Mar 2 23:09:19 CET 2011
Revision: 1671
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=1671
Author: dingto
Date: 2011-03-02 22:09:18 +0000 (Wed, 02 Mar 2011)
Log Message:
-----------
2.5 Povray Export UI:
* Code cleaunp
Notes:
*Why do we have some empty panels with no actual content?
*Why is split used when there is only 1 column?
The Povray script has always been some kind of example for other exporters, the UI code need some more cleanup for sure!
Modified Paths:
--------------
trunk/py/scripts/addons/render_povray/ui.py
Modified: trunk/py/scripts/addons/render_povray/ui.py
===================================================================
--- trunk/py/scripts/addons/render_povray/ui.py 2011-03-02 19:24:54 UTC (rev 1670)
+++ trunk/py/scripts/addons/render_povray/ui.py 2011-03-02 22:09:18 UTC (rev 1671)
@@ -205,11 +205,9 @@
col = split.column()
if scene.pov_indentation_character == "2":
col.prop(scene, "pov_indentation_spaces", text="Spaces")
- split = layout.split()
- col = split.column()
- col.prop(scene, "pov_comments_enable", text="Comments")
- col = split.column()
- col.prop(scene, "pov_list_lf_enable", text="Line breaks in lists")
+ row = layout.row()
+ row.prop(scene, "pov_comments_enable", text="Comments")
+ row.prop(scene, "pov_list_lf_enable", text="Line breaks in lists")
class RENDER_PT_povray_render_settings(RenderButtonsPanel, bpy.types.Panel):
@@ -261,11 +259,9 @@
layout.active = scene.pov_antialias_enable
- split = layout.split()
- col = split.column()
- col.prop(scene, "pov_antialias_method", text="")
- col = split.column()
- col.prop(scene, "pov_jitter_enable", text="Jitter")
+ row = layout.row()
+ row.prop(scene, "pov_antialias_method", text="")
+ row.prop(scene, "pov_jitter_enable", text="Jitter")
split = layout.split()
col = split.column()
@@ -277,11 +273,9 @@
else:
sub.enabled = False
- split = layout.split()
- col = split.column()
- col.prop(scene, "pov_antialias_threshold", text="AA Threshold")
- col = split.column()
- col.prop(scene, "pov_antialias_gamma", text="AA Gamma")
+ row = layout.row()
+ row.prop(scene, "pov_antialias_threshold", text="AA Threshold")
+ row.prop(scene, "pov_antialias_gamma", text="AA Gamma")
class RENDER_PT_povray_radiosity(RenderButtonsPanel, bpy.types.Panel):
@@ -306,9 +300,9 @@
col = split.column()
col.prop(scene, "pov_radio_count", text="Rays")
col.prop(scene, "pov_radio_recursion_limit", text="Recursions")
- col = split.column()
- col.prop(scene, "pov_radio_error_bound", text="Error Bound")
+ split.prop(scene, "pov_radio_error_bound", text="Error Bound")
+
layout.prop(scene, "pov_radio_display_advanced")
if scene.pov_radio_display_advanced:
@@ -333,8 +327,7 @@
col.prop(scene, "pov_radio_media")
col.prop(scene, "pov_radio_normal")
- col = split.column()
- col.prop(scene, "pov_radio_always_sample")
+ split.prop(scene, "pov_radio_always_sample")
class RENDER_PT_povray_media(RenderButtonsPanel, bpy.types.Panel):
@@ -353,12 +346,10 @@
rd = scene.render
layout.active = scene.pov_media_enable
- split = layout.split()
- col = split.column()
- col.prop(scene, "pov_media_samples", text="Samples")
- col = split.column()
- col.prop(scene, "pov_media_color", text="")
+ row = layout.row()
+ row.prop(scene, "pov_media_samples", text="Samples")
+ row.prop(scene, "pov_media_color", text="")
##class RENDER_PT_povray_baking(RenderButtonsPanel, bpy.types.Panel):
## bl_label = "Baking"
More information about the Bf-extensions-cvs
mailing list