[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [1520] trunk/py/scripts/addons/ render_povray/__init__.py: Fixed color pickers

Maurice Raybaud mauriceraybaud at hotmail.fr
Sat Jan 29 11:18:25 CET 2011


Revision: 1520
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=1520
Author:   mauriceraybaud
Date:     2011-01-29 10:18:25 +0000 (Sat, 29 Jan 2011)
Log Message:
-----------
Fixed color pickers

Modified Paths:
--------------
    trunk/py/scripts/addons/render_povray/__init__.py

Modified: trunk/py/scripts/addons/render_povray/__init__.py
===================================================================
--- trunk/py/scripts/addons/render_povray/__init__.py	2011-01-28 02:25:40 UTC (rev 1519)
+++ trunk/py/scripts/addons/render_povray/__init__.py	2011-01-29 10:18:25 UTC (rev 1520)
@@ -95,9 +95,14 @@
     Scene.pov_media_color = FloatVectorProperty(
             name="Media Color",
             description="The atmospheric media color.",
-            #min=(0.0, 0.0, 0.0), soft_max=(1.0, 1.0, 1.0),#change this to what's needed for colors
-            subtype='COLOR')
-            #default=(0.01, 0.01, 0.01)#change this to what's needed for colors
+            subtype='COLOR',
+            precision = 4,
+            step = 0.01,
+            min=0,
+            soft_max = 1,
+            default=(0.001, 0.001, 0.001),
+            options={'ANIMATABLE'})
+            
     
     Scene.pov_baking_enable = BoolProperty(
             name="Enable Baking",
@@ -279,9 +284,13 @@
     Mat.pov_interior_fade_color = FloatVectorProperty(
             name="Fade Color",
             description="Color of filtered attenuation for transparent materials",
-            #min=(0.0, 0.0, 0.0), soft_max=(1.0, 1.0, 1.0),#change this to what's needed for colors
-            subtype='COLOR')
-            #default=(0.0, 0.0, 0.0)
+            subtype='COLOR',
+            precision = 4,
+            step = 0.01,
+            min=0,
+            soft_max = 1,
+            default=(0, 0, 0),
+            options={'ANIMATABLE'})
 
     Mat.pov_caustics_enable = BoolProperty(
             name="Caustics",



More information about the Bf-extensions-cvs mailing list