[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2184] branches/ivygen/truman_ivy/ add_curve_ivygen.py: - Fixed probabilities to be more intuitive

Andrew Hale TrumanBlending at gmail.com
Tue Jul 26 07:04:55 CEST 2011


Revision: 2184
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2184
Author:   trumanblending
Date:     2011-07-26 05:04:55 +0000 (Tue, 26 Jul 2011)
Log Message:
-----------
- Fixed probabilities to be more intuitive

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-26 03:46:38 UTC (rev 2183)
+++ branches/ivygen/truman_ivy/add_curve_ivygen.py	2011-07-26 05:04:55 UTC (rev 2184)
@@ -258,8 +258,8 @@
                  randomWeight=0.2,
                  gravityWeight=1.0,
                  adhesionWeight=0.1,
-                 branchingProbability=0.95,
-                 leafProbability=0.65,
+                 branchingProbability=0.05,
+                 leafProbability=0.35,
                  ivySize=0.02,
                  ivyLeafSize=0.02,
                  ivyBranchSize=0.001,
@@ -271,8 +271,8 @@
         self.randomWeight = randomWeight
         self.gravityWeight = gravityWeight
         self.adhesionWeight = adhesionWeight
-        self.branchingProbability = branchingProbability
-        self.leafProbability = leafProbability
+        self.branchingProbability = 1 - branchingProbability
+        self.leafProbability = 1 - leafProbability
         self.ivySize = ivySize
         self.ivyLeafSize = ivyLeafSize
         self.ivyBranchSize = ivyBranchSize
@@ -479,12 +479,12 @@
                     soft_max=1.0)
     branchingProbability = FloatProperty(name="Branching Probability",
                     description="Probability of a new branch forming.",
-                    default=0.95,
+                    default=0.05,
                     min=0.0,
                     soft_max=1.0)
     leafProbability = FloatProperty(name="Leaf Probability",
                     description="Probability of a leaf forming.",
-                    default=0.65,
+                    default=0.35,
                     min=0.0,
                     soft_max=1.0)
     ivySize = FloatProperty(name="Ivy Size",



More information about the Bf-extensions-cvs mailing list