[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [3826] contrib/py/scripts/addons/ space_view3d_paint_bprojection.py: BProjection: Now the sliders react much smoother when dragged with the mouse.

Gaia Clary gaia.clary at machinimatrix.org
Sun Oct 7 15:33:36 CEST 2012


Revision: 3826
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=3826
Author:   gaiaclary
Date:     2012-10-07 13:33:36 +0000 (Sun, 07 Oct 2012)
Log Message:
-----------
BProjection: Now the sliders react much smoother when dragged with the mouse. Still work in progress as the values might not work everywhere.

Modified Paths:
--------------
    contrib/py/scripts/addons/space_view3d_paint_bprojection.py

Modified: contrib/py/scripts/addons/space_view3d_paint_bprojection.py
===================================================================
--- contrib/py/scripts/addons/space_view3d_paint_bprojection.py	2012-10-07 12:11:43 UTC (rev 3825)
+++ contrib/py/scripts/addons/space_view3d_paint_bprojection.py	2012-10-07 13:33:36 UTC (rev 3826)
@@ -256,6 +256,8 @@
     custom_location = FloatVectorProperty(name="Location", description="Location of the plane",
                                           default=(0,0,-1.0),
                                           subtype = 'XYZ', 
+                                          soft_min = -10,
+                                          soft_max = 10,
                                           step=0.1,
                                           size=3)
                                            
@@ -266,6 +268,7 @@
                                        default=(1.0, 1.0),
                                        subtype = 'XYZ',
                                        min = 0.1,
+                                       max = 10,
                                        step=0.1,
                                        size=2)
     custom_propscale = FloatProperty(name="PropScale", description="Scale the Plane",
@@ -300,11 +303,13 @@
     
     # plane properties 
     Ob.custom_location = FloatVectorProperty(name="Location", description="Location of the plane",
-                                           default = (0, 0, -1.0),
-                                           subtype = 'XYZ', 
-                                           size    = 3,
-                                           step    = 0.5,
-                                           update  = update_Location)
+                                           default  = (0, 0, -1.0),
+                                           subtype  = 'XYZ', 
+                                           size     = 3,
+                                           step     = 0.5,
+                                           soft_min = -10,
+                                           soft_max = 10,
+                                           update   = update_Location)
                                            
     Ob.custom_rotation = FloatProperty(name="Rotation", description="Rotate the plane",
                                        min=-180, max=180, default=0,update = update_Rotation)
@@ -316,6 +321,7 @@
                                           subtype = 'XYZ',
                                           default=(1.0, 1.0),
                                           min = 0.1,
+                                          max = 10,
                                           size=2,
                                           step=0.5,
                                           update = update_Scale)



More information about the Bf-extensions-cvs mailing list