[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [1289] trunk/py/scripts/addons/ add_curve_torus_knots.py: added location, rotation to bring in line with standard add_objects, and even more cleanup

Florian Meyer florianfelix at web.de
Sat Dec 18 10:42:37 CET 2010


Revision: 1289
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-extensions&revision=1289
Author:   testscreenings
Date:     2010-12-18 10:42:37 +0100 (Sat, 18 Dec 2010)

Log Message:
-----------
added location, rotation to bring in line with standard add_objects, and even more cleanup

Modified Paths:
--------------
    trunk/py/scripts/addons/add_curve_torus_knots.py

Modified: trunk/py/scripts/addons/add_curve_torus_knots.py
===================================================================
--- trunk/py/scripts/addons/add_curve_torus_knots.py	2010-12-18 09:33:42 UTC (rev 1288)
+++ trunk/py/scripts/addons/add_curve_torus_knots.py	2010-12-18 09:42:37 UTC (rev 1289)
@@ -123,9 +123,6 @@
     geo_extrude = FloatProperty(name="extrude",
                 default=0.0,
                 min=0, soft_min=0)
-    geo_width = FloatProperty(name="width",
-                default=1.0,
-                min=0, soft_min=0)
     geo_res = IntProperty(name="resolution",
                 default=12,
                 min=1, soft_min=1)
@@ -133,7 +130,7 @@
 
     #### Parameters
     torus_res = IntProperty(name="Resoulution",
-                default=200,
+                default=100,
                 min=3, soft_min=3,
                 description='Resolution, Number of controlverticies.')
     torus_p = IntProperty(name="p",
@@ -166,10 +163,6 @@
                 min=1, soft_min=1,
                 #max=1, soft_max=1,
                 description="v")
-    torus_formula = IntProperty(name="Variation",
-                default=0,
-                min=0, soft_min=0,
-                max=10, soft_max=10)
     torus_rounds = IntProperty(name="Rounds",
                 default=2,
                 min=1, soft_min=1,
@@ -182,7 +175,6 @@
 
         # general options        
         col = layout.column()
-        #col.prop(self, 'KnotType') waits for more knottypes
         col.label(text="Torus Knot Parameters")
 
         # Parameters 
@@ -207,8 +199,10 @@
             box.prop(self, 'geo_bDepth')
             box.prop(self, 'geo_bRes')
             box.prop(self, 'geo_extrude')
-            #box.prop(self, 'geo_width') # not really good
             box.prop(self, 'geo_res')
+        col = layout.column()
+        col.prop(self, 'location')
+        col.prop(self, 'rotation')
     
     ##### POLL #####
     @classmethod




More information about the Bf-extensions-cvs mailing list