Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Meyer <florianfelix@web.de>2010-12-18 12:42:37 +0300
committerFlorian Meyer <florianfelix@web.de>2010-12-18 12:42:37 +0300
commita615c2ef6c5b6814063ad4b6797e241e34c386b1 (patch)
tree702dc71e87e8dc5f49160ae9c0af8e0a9990b41f /add_curve_torus_knots.py
parent9018d515d7a6d35718aa122509443c70523bb061 (diff)
added location, rotation to bring in line with standard add_objects, and even more cleanup
Diffstat (limited to 'add_curve_torus_knots.py')
-rw-r--r--add_curve_torus_knots.py14
1 files changed, 4 insertions, 10 deletions
diff --git a/add_curve_torus_knots.py b/add_curve_torus_knots.py
index 3500642b..02273d07 100644
--- a/add_curve_torus_knots.py
+++ b/add_curve_torus_knots.py
@@ -123,9 +123,6 @@ class torus_knot_plus(bpy.types.Operator, AddObjectHelper):
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 @@ class torus_knot_plus(bpy.types.Operator, AddObjectHelper):
#### 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 @@ class torus_knot_plus(bpy.types.Operator, AddObjectHelper):
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 @@ class torus_knot_plus(bpy.types.Operator, AddObjectHelper):
# general options
col = layout.column()
- #col.prop(self, 'KnotType') waits for more knottypes
col.label(text="Torus Knot Parameters")
# Parameters
@@ -207,8 +199,10 @@ class torus_knot_plus(bpy.types.Operator, AddObjectHelper):
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