[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [3825] contrib/py/scripts/addons/ space_view3d_paint_bprojection.py: BProjection: Changed the slider button settings a bit.

Gaia Clary gaia.clary at machinimatrix.org
Sun Oct 7 14:11:44 CEST 2012


Revision: 3825
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=3825
Author:   gaiaclary
Date:     2012-10-07 12:11:43 +0000 (Sun, 07 Oct 2012)
Log Message:
-----------
BProjection: Changed the slider button settings a bit. Not sure if these settings fit for every scenario

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 05:45:02 UTC (rev 3824)
+++ contrib/py/scripts/addons/space_view3d_paint_bprojection.py	2012-10-07 12:11:43 UTC (rev 3825)
@@ -254,14 +254,20 @@
 
 class custom_props(bpy.types.PropertyGroup):
     custom_location = FloatVectorProperty(name="Location", description="Location of the plane",
-                                           default=(0,0,-1.0),
-                                           subtype = 'XYZ', size=3)
+                                          default=(0,0,-1.0),
+                                          subtype = 'XYZ', 
+                                          step=0.1,
+                                          size=3)
                                            
     custom_rotation = FloatProperty(name="Rotation", description="Rotate the plane",
-                                     min=-180, max=180, default=0)
+                                    min=-180, max=180, default=0)
                                          
     custom_scale = FloatVectorProperty(name="Scales", description="Scale the planes",
-                                       subtype = 'XYZ', default=(1.0, 1.0),min = 0.1, size=2)
+                                       default=(1.0, 1.0),
+                                       subtype = 'XYZ',
+                                       min = 0.1,
+                                       step=0.1,
+                                       size=2)
     custom_propscale = FloatProperty(name="PropScale", description="Scale the Plane",
                                            default=1.0,min = 0.1)
                                                                                     
@@ -294,19 +300,32 @@
     
     # plane properties 
     Ob.custom_location = FloatVectorProperty(name="Location", description="Location of the plane",
-                                           default=(0, 0, -1.0),
-                                           subtype = 'XYZ', size=3, update = update_Location)
+                                           default = (0, 0, -1.0),
+                                           subtype = 'XYZ', 
+                                           size    = 3,
+                                           step    = 0.5,
+                                           update  = update_Location)
                                            
     Ob.custom_rotation = FloatProperty(name="Rotation", description="Rotate the plane",
-                                     min=-180, max=180, default=0,update = update_Rotation)
+                                       min=-180, max=180, default=0,update = update_Rotation)
                                      
     Ob.custom_old_rotation = FloatProperty(name="old_Rotation", description="Old Rotate the plane",
-                                         min=-180, max=180, default=0)
+                                           min=-180, max=180, default=0)
                                          
     Ob.custom_scale = FloatVectorProperty(name="Scales", description="Scale the planes",
-                                          subtype = 'XYZ', default=(1.0, 1.0),min = 0.1, size=2,update = update_Scale)
+                                          subtype = 'XYZ',
+                                          default=(1.0, 1.0),
+                                          min = 0.1,
+                                          size=2,
+                                          step=0.5,
+                                          update = update_Scale)
+                                          
     Ob.custom_propscale = FloatProperty(name="PropScale", description="Scale the Plane",
-                                           default=1.0,min = 0.1,update = update_PropScale)
+                                        default=1.0,
+                                        min = 0.1,
+                                        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)
                                           



More information about the Bf-extensions-cvs mailing list