[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2192] branches/ivygen/truman_ivy/ add_curve_ivygen.py: - Fixed property defaults
Andrew Hale
TrumanBlending at gmail.com
Thu Jul 28 12:39:07 CEST 2011
Revision: 2192
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2192
Author: trumanblending
Date: 2011-07-28 10:39:06 +0000 (Thu, 28 Jul 2011)
Log Message:
-----------
- Fixed property defaults
- Fixed edge generation in leaf mesh
- Added "Add New Default Ivy" button to UI
- Changed name in menu to be more descriptive
Modified Paths:
--------------
branches/ivygen/truman_ivy/add_curve_ivygen.py
Modified: branches/ivygen/truman_ivy/add_curve_ivygen.py
===================================================================
--- branches/ivygen/truman_ivy/add_curve_ivygen.py 2011-07-28 09:25:10 UTC (rev 2191)
+++ branches/ivygen/truman_ivy/add_curve_ivygen.py 2011-07-28 10:39:06 UTC (rev 2192)
@@ -182,7 +182,7 @@
# Generate the new leaf mesh and link
me = bpy.data.meshes.new('IvyLeaf')
me.from_pydata(vertList, [], faceList)
- me.validate()
+ me.update(calc_edges=True)
ob = bpy.data.objects.new('IvyLeaf', me)
bpy.context.scene.objects.link(ob)
@@ -482,17 +482,20 @@
" Units.",
default=0.02,
min=0.0,
- soft_max=1.0)
+ soft_max=1.0,
+ precision=3)
ivyLeafSize = FloatProperty(name="Ivy Leaf Size",
description="The size of the ivy leaves",
default=0.02,
min=0.0,
- soft_max=2)
+ soft_max=0.5,
+ precision=3)
ivyBranchSize = FloatProperty(name="Ivy Branch Size",
description="The size of the ivy branches",
default=0.001,
min=0.0,
- soft_max=1.0)
+ soft_max=0.1,
+ precision=4)
maxFloatLength = FloatProperty(name="Max Float Length",
description="The maximum distance that a branch"\
"can live while floating.",
@@ -504,7 +507,8 @@
"will feel the effects of adhesion.",
default=1.0,
min=0.0,
- soft_max=2.0)
+ soft_max=2.0,
+ precision=2)
randomSeed = FloatProperty(name="Random Seed",
description="The seed governing random generation.",
default=0,
@@ -625,6 +629,9 @@
properties.ivyLeafSize = self.ivyLeafSize
row = layout.row()
+ row.operator('curve.ivy_gen', text="Add New Default Ivy")
+
+ row = layout.row()
row.prop(self, 'growLeaves')
box = layout.box()
@@ -670,7 +677,7 @@
def menu_func(self, context):
- self.layout.operator(IvyGen.bl_idname, text="Add Ivy", icon='PLUGIN')
+ self.layout.operator(IvyGen.bl_idname, text="Add Ivy to Mesh", icon='PLUGIN')
def register():
More information about the Bf-extensions-cvs
mailing list