[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [3827] contrib/py/scripts/addons/ space_view3d_paint_bprojection.py: BProjection: Also added soft boundaries for scale and UV sliders

Gaia Clary gaia.clary at machinimatrix.org
Sun Oct 7 15:52:37 CEST 2012


Revision: 3827
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=3827
Author:   gaiaclary
Date:     2012-10-07 13:52:36 +0000 (Sun, 07 Oct 2012)
Log Message:
-----------
BProjection: Also added soft boundaries for scale and UV sliders

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 13:33:36 UTC (rev 3826)
+++ contrib/py/scripts/addons/space_view3d_paint_bprojection.py	2012-10-07 13:52:36 UTC (rev 3827)
@@ -269,10 +269,17 @@
                                        subtype = 'XYZ',
                                        min = 0.1,
                                        max = 10,
+                                       soft_min=0.1,
+                                       soft_max=10,
                                        step=0.1,
                                        size=2)
     custom_propscale = FloatProperty(name="PropScale", description="Scale the Plane",
-                                           default=1.0,min = 0.1)
+                                     default=1.0,
+                                     min = 0.1,
+                                     max = 10,
+                                     soft_min=0.1,
+                                     soft_max=10,
+                                     step=0.1)
                                                                                     
     custom_linkscale = BoolProperty(name="linkscale", default=True)
    
@@ -322,15 +329,19 @@
                                           default=(1.0, 1.0),
                                           min = 0.1,
                                           max = 10,
+                                          soft_min = 0.1,
+                                          soft_max = 10,
                                           size=2,
                                           step=0.5,
                                           update = update_Scale)
                                           
     Ob.custom_propscale = FloatProperty(name="PropScale", description="Scale the Plane",
-                                        default=1.0,
-                                        min = 0.1,
-                                        step=0.5,
-                                        update = update_PropScale)
+                                        default  = 1.0,
+                                        min      = 0.1,
+                                        soft_min = 0.1,
+                                        soft_max = 10,
+                                        step     = 0.5,
+                                        update   = update_PropScale)
                                            
     Ob.custom_old_scale = FloatVectorProperty(name="old_Scales", description="Old Scale the planes",
                                           subtype = 'XYZ', default=(1.0, 1.0),min = 0.1, size=2)
@@ -343,9 +354,21 @@
     
     # UV properties
     Ob.custom_scaleuv = FloatVectorProperty(name="ScaleUV", description="Scale the texture's UV",
-                                            default=(1.0,1.0),min = 0.01, subtype = 'XYZ', size=2,update = update_UVScale)
+                                            default  = (1.0,1.0),
+                                            soft_min = 0.01,
+                                            soft_max = 100,
+                                            min      = 0.01, 
+                                            subtype  = 'XYZ',
+                                            size     = 2,
+                                            update   = update_UVScale)
+                                            
     Ob.custom_propscaleuv = FloatProperty(name="PropScaleUV", description="Scale the texture's UV",
-                                           default=1.0,min = 0.01,update = update_PropUVScale)    
+                                          default    = 1.0,
+                                          soft_min   = 0.01,
+                                          soft_max   = 100,
+                                          min        = 0.01,
+                                          update     = update_PropUVScale)    
+
     Ob.custom_old_scaleuv = FloatVectorProperty(name="old_ScaleUV", description="Scale the texture's UV",
                                                 default=(1.0,1.0),min = 0.01, subtype = 'XYZ', size=2)
     Ob.custom_offsetuv = FloatVectorProperty(name="OffsetUV", description="Decal the texture's UV",



More information about the Bf-extensions-cvs mailing list