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:
authorThomas Dinges <blender@dingto.org>2011-07-29 03:01:09 +0400
committerThomas Dinges <blender@dingto.org>2011-07-29 03:01:09 +0400
commit44a94e93b2012811fb0dd5060004fa55ed265bc1 (patch)
treeb10dae44da655b1f162da1460215d4d65ede04a6 /add_curve_aceous_galore.py
parent9bfcc84a6e5c2b1bdafb6fddf582b130ade5a424 (diff)
Add Curve Aceous Galore Script:
*Some code improvements like if -> elif
Diffstat (limited to 'add_curve_aceous_galore.py')
-rw-r--r--add_curve_aceous_galore.py32
1 files changed, 15 insertions, 17 deletions
diff --git a/add_curve_aceous_galore.py b/add_curve_aceous_galore.py
index 8bb26a96..d657037c 100644
--- a/add_curve_aceous_galore.py
+++ b/add_curve_aceous_galore.py
@@ -996,7 +996,7 @@ class Curveaceous_galore(bpy.types.Operator):
# general options
col = layout.column()
col.prop(self, 'GalloreType')
- col.label(text=self.GalloreType + " Options")
+ col.label(text=self.GalloreType + " Options:")
# options per GalloreType
box = layout.box()
@@ -1004,47 +1004,47 @@ class Curveaceous_galore(bpy.types.Operator):
box.prop(self, 'ProfileCurveType')
box.prop(self, 'ProfileCurvevar1')
box.prop(self, 'ProfileCurvevar2')
- if self.GalloreType == 'Miscellaneous':
+ elif self.GalloreType == 'Miscellaneous':
box.prop(self, 'MiscCurveType')
box.prop(self, 'MiscCurvevar1', text='Width')
box.prop(self, 'MiscCurvevar2', text='Height')
if self.MiscCurveType == 5:
box.prop(self, 'MiscCurvevar3', text='Rounded')
- if self.GalloreType == 'Flower':
+ elif self.GalloreType == 'Flower':
box.prop(self, 'petals')
box.prop(self, 'petalWidth')
box.prop(self, 'innerRadius')
box.prop(self, 'outerRadius')
- if self.GalloreType == 'Star':
+ elif self.GalloreType == 'Star':
box.prop(self, 'starPoints')
box.prop(self, 'starTwist')
box.prop(self, 'innerRadius')
box.prop(self, 'outerRadius')
- if self.GalloreType == 'Arc':
+ elif self.GalloreType == 'Arc':
box.prop(self, 'arcSides')
box.prop(self, 'arcType') # has only one Type?
box.prop(self, 'startAngle')
box.prop(self, 'endAngle')
box.prop(self, 'innerRadius') # doesn't seem to do anything
box.prop(self, 'outerRadius')
- if self.GalloreType == 'Cogwheel':
+ elif self.GalloreType == 'Cogwheel':
box.prop(self, 'teeth')
box.prop(self, 'bevel')
box.prop(self, 'innerRadius')
box.prop(self, 'middleRadius')
box.prop(self, 'outerRadius')
- if self.GalloreType == 'Nsided':
+ elif self.GalloreType == 'Nsided':
box.prop(self, 'Nsides')
box.prop(self, 'outerRadius', text='Radius')
- if self.GalloreType == 'Splat':
+ elif self.GalloreType == 'Splat':
box.prop(self, 'splatSides')
box.prop(self, 'outerRadius')
box.prop(self, 'splatScale')
box.prop(self, 'seed')
box.prop(self, 'basis')
- if self.GalloreType == 'Helix':
+ elif self.GalloreType == 'Helix':
box.prop(self, 'helixPoints')
box.prop(self, 'helixHeight')
box.prop(self, 'helixWidth')
@@ -1052,7 +1052,7 @@ class Curveaceous_galore(bpy.types.Operator):
box.prop(self, 'helixEnd')
box.prop(self, 'helix_a')
box.prop(self, 'helix_b')
- if self.GalloreType == 'Cycloid':
+ elif self.GalloreType == 'Cycloid':
box.prop(self, 'cycloPoints')
#box.prop(self, 'cycloType') # needs the other types first
box.prop(self, 'cycloStart')
@@ -1062,11 +1062,9 @@ class Curveaceous_galore(bpy.types.Operator):
box.prop(self, 'cyclo_d')
col = layout.column()
- col.label(text="Output Curve Type")
- row = layout.row()
- row.prop(self, 'outputType', expand=True)
- col = layout.column()
- col.label(text="Curve Options")
+ col.label(text="Output Curve Type:")
+ col.row().prop(self, 'outputType', expand=True)
+ col.label(text="Curve Options:")
# output options
box = layout.box()
@@ -1076,11 +1074,11 @@ class Curveaceous_galore(bpy.types.Operator):
#box.prop(self, 'endp_u')
box.prop(self, 'order_u')
- if self.outputType == 'POLY':
+ elif self.outputType == 'POLY':
box.row().prop(self, 'shape', expand=True)
#box.prop(self, 'use_cyclic_u')
- if self.outputType == 'BEZIER':
+ elif self.outputType == 'BEZIER':
box.row().prop(self, 'shape', expand=True)
box.row().prop(self, 'handleType', expand=True)
#box.prop(self, 'use_cyclic_u')