[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [1676] trunk/py/scripts/addons/ render_povray/ui.py: 2.5 Povray UI:
Thomas Dinges
blender at dingto.de
Thu Mar 3 22:00:18 CET 2011
Revision: 1676
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=1676
Author: dingto
Date: 2011-03-03 21:00:18 +0000 (Thu, 03 Mar 2011)
Log Message:
-----------
2.5 Povray UI:
* More Code cleanup, please watch and learn. :)
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-03 15:47:10 UTC (rev 1675)
+++ trunk/py/scripts/addons/render_povray/ui.py 2011-03-03 21:00:18 UTC (rev 1676)
@@ -514,10 +514,8 @@
layout = self.layout
mat = context.material
- #layout.active = mat.pov_replacement_text
- split = layout.split()
- col = split.column()
+ col = layout.column()
col.label(text="Replace properties with:")
col.prop(mat, "pov_replacement_text", text="")
@@ -537,12 +535,9 @@
tex = context.texture
layout.active = tex.pov_tex_gamma_enable
- split = layout.split()
+ layout.prop(tex, "pov_tex_gamma_value", text="Gamma Value")
- col = split.column()
- col.prop(tex, "pov_tex_gamma_value", text="Gamma Value")
-
class TEXTURE_PT_povray_replacement_text(TextureButtonsPanel, bpy.types.Panel):
bl_label = "Custom POV Code"
COMPAT_ENGINES = {'POVRAY_RENDER'}
@@ -551,10 +546,8 @@
layout = self.layout
tex = context.texture
- #layout.active = tex.pov_replacement_text
- split = layout.split()
- col = split.column()
+ col = layout.column()
col.label(text="Replace properties with:")
col.prop(tex, "pov_replacement_text", text="")
@@ -569,13 +562,11 @@
obj = context.object
layout.active = obj.pov_importance_value
- split = layout.split()
- col = split.column()
- col.label(text="Radiosity")
+ col = layout.column()
+ col.label(text="Radiosity:")
col.prop(obj, "pov_importance_value", text="Importance")
- row = col.row()
- col.label(text="Photons")
+ col.label(text="Photons:")
col.prop(obj, "pov_collect_photons", text="Receive Photon Caustics")
class OBJECT_PT_povray_replacement_text(ObjectButtonsPanel, bpy.types.Panel):
@@ -586,10 +577,8 @@
layout = self.layout
obj = context.object
- #layout.active = obj.pov_replacement_text
- split = layout.split()
- col = split.column()
+ col = layout.column()
col.label(text="Replace properties with:")
col.prop(obj, "pov_replacement_text", text="")
@@ -610,18 +599,15 @@
layout.active = cam.pov_dof_enable
- split = layout.split()
- row = split.row()
- row.prop(cam, "pov_dof_aperture")
+ layout.prop(cam, "pov_dof_aperture")
split = layout.split()
+
col = split.column()
-
col.prop(cam, "pov_dof_samples_min")
col.prop(cam, "pov_dof_variance")
col = split.column()
-
col.prop(cam, "pov_dof_samples_max")
col.prop(cam, "pov_dof_confidence")
@@ -634,10 +620,8 @@
layout = self.layout
cam = context.camera
- #layout.active = cam.pov_replacement_text
- split = layout.split()
- col = split.column()
+ col = layout.column()
col.label(text="Replace properties with:")
col.prop(cam, "pov_replacement_text", text="")
@@ -649,13 +633,9 @@
def draw(self, context):
layout = self.layout
- textspace = context.space_data
- #layout.active = text.pov_replacement_text
- split = layout.split()
- col = split.column()
- text = textspace.text
+ text = context.space_data.text
if text:
- col.prop(text, "pov_custom_code", text="Add as POV code")
+ layout.prop(text, "pov_custom_code", text="Add as POV code")
More information about the Bf-extensions-cvs
mailing list