[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2193] trunk/py/scripts/addons/ add_curve_aceous_galore.py: Add Curve Aceous Galore Script:
Thomas Dinges
blender at dingto.org
Fri Jul 29 01:01:10 CEST 2011
Revision: 2193
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2193
Author: dingto
Date: 2011-07-28 23:01:09 +0000 (Thu, 28 Jul 2011)
Log Message:
-----------
Add Curve Aceous Galore Script:
*Some code improvements like if -> elif
Modified Paths:
--------------
trunk/py/scripts/addons/add_curve_aceous_galore.py
Modified: trunk/py/scripts/addons/add_curve_aceous_galore.py
===================================================================
--- trunk/py/scripts/addons/add_curve_aceous_galore.py 2011-07-28 10:39:06 UTC (rev 2192)
+++ trunk/py/scripts/addons/add_curve_aceous_galore.py 2011-07-28 23:01:09 UTC (rev 2193)
@@ -996,7 +996,7 @@
# 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 @@
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 @@
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 @@
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 @@
#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')
More information about the Bf-extensions-cvs
mailing list