[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [927] trunk/py/scripts/addons: update for changes in blender

Campbell Barton ideasman42 at gmail.com
Thu Aug 19 19:33:42 CEST 2010


Revision: 927
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-extensions&revision=927
Author:   campbellbarton
Date:     2010-08-19 19:33:42 +0200 (Thu, 19 Aug 2010)

Log Message:
-----------
update for changes in blender

Modified Paths:
--------------
    trunk/py/scripts/addons/add_curve_aceous_galore.py
    trunk/py/scripts/addons/add_curve_torus_knots.py
    trunk/py/scripts/addons/curve_simplify.py
    trunk/py/scripts/addons/object_fracture/fracture_setup.py

Modified: trunk/py/scripts/addons/add_curve_aceous_galore.py
===================================================================
--- trunk/py/scripts/addons/add_curve_aceous_galore.py	2010-08-19 16:46:28 UTC (rev 926)
+++ trunk/py/scripts/addons/add_curve_aceous_galore.py	2010-08-19 17:33:42 UTC (rev 927)
@@ -637,12 +637,12 @@
     else:
         newSpline.points.add(int(len(vertArray)*0.25 - 1))
         newSpline.points.foreach_set('co', vertArray)
-        newSpline.endpoint_u = True
+        newSpline.use_endpoint_u = True
 
     # set curveOptions
     newCurve.dimensions = props.shape
-    newSpline.cyclic_u = props.cyclic_u
-    newSpline.endpoint_u = props.endp_u
+    newSpline.use_cyclic_u = props.use_cyclic_u
+    newSpline.use_endpoint_u = props.endp_u
     newSpline.order_u = props.order_u
 
     # create object with newCurve
@@ -783,7 +783,7 @@
     cyclic_u = BoolProperty(name="Cyclic",
                 default=True,
                 description="make curve closed")
-    endp_u = BoolProperty(name="endpoint_u",
+    endp_u = BoolProperty(name="use_endpoint_u",
                 default=True,
                 description="stretch to endpoints")
     order_u = IntProperty(name="order_u",
@@ -1048,18 +1048,18 @@
         box = layout.box()
         if props.outputType == 'NURBS':
             box.row().prop(props, 'shape', expand=True)
-            #box.prop(props, 'cyclic_u')
+            #box.prop(props, 'use_cyclic_u')
             #box.prop(props, 'endp_u')
             box.prop(props, 'order_u')
 
         if props.outputType == 'POLY':
             box.row().prop(props, 'shape', expand=True)
-            #box.prop(props, 'cyclic_u')
+            #box.prop(props, 'use_cyclic_u')
 
         if props.outputType == 'BEZIER':
             box.row().prop(props, 'shape', expand=True)
             box.row().prop(props, 'handleType', expand=True)
-            #box.prop(props, 'cyclic_u')
+            #box.prop(props, 'use_cyclic_u')
 
 
     ##### POLL #####
@@ -1081,9 +1081,9 @@
             #props.shape = '2D'     # someone decide if we want this
 
         if props.GalloreType in ['Helix']:
-            props.cyclic_u = False
+            props.use_cyclic_u = False
         else:
-            props.cyclic_u = True
+            props.use_cyclic_u = True
 
 
         # main function

Modified: trunk/py/scripts/addons/add_curve_torus_knots.py
===================================================================
--- trunk/py/scripts/addons/add_curve_torus_knots.py	2010-08-19 16:46:28 UTC (rev 926)
+++ trunk/py/scripts/addons/add_curve_torus_knots.py	2010-08-19 17:33:42 UTC (rev 927)
@@ -78,12 +78,12 @@
     # create spline from vertarray
     newSpline.points.add(int(len(vertArray)*0.25 - 1))
     newSpline.points.foreach_set('co', vertArray)
-    newSpline.endpoint_u = True
+    newSpline.use_endpoint_u = True
 
     # Curve settings
     newCurve.dimensions = '3D'
-    newSpline.cyclic_u = True
-    newSpline.endpoint_u = True
+    newSpline.use_cyclic_u = True
+    newSpline.use_endpoint_u = True
     newSpline.order_u = 4
 
     if props.geo_surf:

Modified: trunk/py/scripts/addons/curve_simplify.py
===================================================================
--- trunk/py/scripts/addons/curve_simplify.py	2010-08-19 16:46:28 UTC (rev 926)
+++ trunk/py/scripts/addons/curve_simplify.py	2010-08-19 17:33:42 UTC (rev 927)
@@ -280,7 +280,7 @@
                 newSpline.order_u = degreeOut
 
             # splineoptions
-            newSpline.endpoint_u = spline.endpoint_u
+            newSpline.use_endpoint_u = spline.use_endpoint_u
 
     # create ne object and put into scene
     newCurve = bpy.data.objects.new("simple_"+obj.name, curve)

Modified: trunk/py/scripts/addons/object_fracture/fracture_setup.py
===================================================================
--- trunk/py/scripts/addons/object_fracture/fracture_setup.py	2010-08-19 16:46:28 UTC (rev 926)
+++ trunk/py/scripts/addons/object_fracture/fracture_setup.py	2010-08-19 17:33:42 UTC (rev 927)
@@ -43,7 +43,7 @@
 
         g.physics_type = 'RIGID_BODY'
         g.use_collision_bounds = 1
-        g.collision_bounds = 'CONVEX_HULL'
+        g.collision_bounds_type = 'CONVEX_HULL'
         g.rotation_damping = 0.9
 
         sizex, sizey, sizez = getsizefrommesh(ob)




More information about the Bf-extensions-cvs mailing list