[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [790] trunk/py/scripts/addons: update for changes in blenders api.

Campbell Barton ideasman42 at gmail.com
Thu Jul 15 18:56:27 CEST 2010


Revision: 790
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-extensions&revision=790
Author:   campbellbarton
Date:     2010-07-15 18:56:27 +0200 (Thu, 15 Jul 2010)

Log Message:
-----------
update for changes in blenders api.

Modified Paths:
--------------
    trunk/py/scripts/addons/add_curve_aceous_galore.py
    trunk/py/scripts/addons/add_curve_torus_knots.py
    trunk/py/scripts/addons/add_mesh_3d_function_surface.py
    trunk/py/scripts/addons/add_mesh_extras.py
    trunk/py/scripts/addons/add_mesh_gears.py
    trunk/py/scripts/addons/add_mesh_gemstones.py
    trunk/py/scripts/addons/add_mesh_pipe_joint.py
    trunk/py/scripts/addons/add_mesh_solid.py
    trunk/py/scripts/addons/add_mesh_twisted_torus.py
    trunk/py/scripts/addons/curve_simplify.py
    trunk/py/scripts/addons/io_anim_camera.py
    trunk/py/scripts/addons/io_export_unreal_psk_psa.py
    trunk/py/scripts/addons/io_import_images_as_planes.py
    trunk/py/scripts/addons/io_import_scene_mhx.py
    trunk/py/scripts/addons/io_import_scene_unreal_psk.py
    trunk/py/scripts/addons/io_mesh_raw/import_raw.py
    trunk/py/scripts/addons/mesh_relax.py
    trunk/py/scripts/addons/mesh_surface_sketch.py
    trunk/py/scripts/addons/object_cloud_gen.py
    trunk/py/scripts/addons/object_fracture/fracture_ops.py
    trunk/py/scripts/addons/space_view3d_materials_utils.py
    trunk/py/scripts/addons/space_view3d_panel_measure.py
    trunk/py/scripts/addons/space_view3d_spacebar_menu.py

Modified: trunk/py/scripts/addons/add_curve_aceous_galore.py
===================================================================
--- trunk/py/scripts/addons/add_curve_aceous_galore.py	2010-07-15 00:35:57 UTC (rev 789)
+++ trunk/py/scripts/addons/add_curve_aceous_galore.py	2010-07-15 16:56:27 UTC (rev 790)
@@ -655,7 +655,7 @@
     # create object with newCurve
     new_obj = bpy.data.objects.new(name, newCurve) # object
     scene.objects.link(new_obj) # place in active scene
-    new_obj.selected = True # set as selected
+    new_obj.select = True # set as selected
     scene.objects.active = new_obj  # set as active
     new_obj.matrix_world = align_matrix # apply matrix
 

Modified: trunk/py/scripts/addons/add_curve_torus_knots.py
===================================================================
--- trunk/py/scripts/addons/add_curve_torus_knots.py	2010-07-15 00:35:57 UTC (rev 789)
+++ trunk/py/scripts/addons/add_curve_torus_knots.py	2010-07-15 16:56:27 UTC (rev 790)
@@ -108,7 +108,7 @@
     # create object with newCurve
     new_obj = bpy.data.objects.new(name, newCurve) # object
     scene.objects.link(new_obj) # place in active scene
-    new_obj.selected = True # set as selected
+    new_obj.select = True # set as selected
     scene.objects.active = new_obj  # set as active
     new_obj.matrix_world = align_matrix # apply matrix
 

Modified: trunk/py/scripts/addons/add_mesh_3d_function_surface.py
===================================================================
--- trunk/py/scripts/addons/add_mesh_3d_function_surface.py	2010-07-15 00:35:57 UTC (rev 789)
+++ trunk/py/scripts/addons/add_mesh_3d_function_surface.py	2010-07-15 16:56:27 UTC (rev 790)
@@ -170,7 +170,7 @@
 
         # Use the active obj and select it.
         ob_new = obj_act
-        ob_new.selected = True
+        ob_new.select = True
 
         if obj_act.mode == 'OBJECT':
             # Get existing mesh datablock.
@@ -195,7 +195,7 @@
 
         # Link new object to the given scene and select it.
         scene.objects.link(ob_new)
-        ob_new.selected = True
+        ob_new.select = True
 
         # Place the object at the 3D cursor location.
         # apply viewRotaion
@@ -207,7 +207,7 @@
             bpy.ops.object.mode_set(mode='OBJECT')
 
             # Select the active object as well.
-            obj_act.selected = True
+            obj_act.select = True
 
             # Apply location of new object.
             scene.update()

Modified: trunk/py/scripts/addons/add_mesh_extras.py
===================================================================
--- trunk/py/scripts/addons/add_mesh_extras.py	2010-07-15 00:35:57 UTC (rev 789)
+++ trunk/py/scripts/addons/add_mesh_extras.py	2010-07-15 16:56:27 UTC (rev 790)
@@ -79,7 +79,7 @@
 
         # Use the active obj and select it.
         ob_new = obj_act
-        ob_new.selected = True
+        ob_new.select = True
 
         if obj_act.mode == 'OBJECT':
             # Get existing mesh datablock.
@@ -104,7 +104,7 @@
 
         # Link new object to the given scene and select it.
         scene.objects.link(ob_new)
-        ob_new.selected = True
+        ob_new.select = True
 
         # Place the object at the 3D cursor location.
         # apply viewRotaion
@@ -116,7 +116,7 @@
             bpy.ops.object.mode_set(mode='OBJECT')
 
             # Select the active object as well.
-            obj_act.selected = True
+            obj_act.select = True
 
             # Apply location of new object.
             scene.update()

Modified: trunk/py/scripts/addons/add_mesh_gears.py
===================================================================
--- trunk/py/scripts/addons/add_mesh_gears.py	2010-07-15 00:35:57 UTC (rev 789)
+++ trunk/py/scripts/addons/add_mesh_gears.py	2010-07-15 16:56:27 UTC (rev 790)
@@ -113,7 +113,7 @@
 
         # Use the active obj and select it.
         ob_new = obj_act
-        ob_new.selected = True
+        ob_new.select = True
 
         if obj_act.mode == 'OBJECT':
             # Get existing mesh datablock.
@@ -138,7 +138,7 @@
 
         # Link new object to the given scene and select it.
         scene.objects.link(ob_new)
-        ob_new.selected = True
+        ob_new.select = True
 
         # Place the object at the 3D cursor location.
         # apply viewRotaion
@@ -151,7 +151,7 @@
             bpy.ops.object.mode_set(mode='OBJECT')
 
             # Select the active object as well.
-            obj_act.selected = True
+            obj_act.select = True
 
             # Apply location of new object.
             scene.update()

Modified: trunk/py/scripts/addons/add_mesh_gemstones.py
===================================================================
--- trunk/py/scripts/addons/add_mesh_gemstones.py	2010-07-15 00:35:57 UTC (rev 789)
+++ trunk/py/scripts/addons/add_mesh_gemstones.py	2010-07-15 16:56:27 UTC (rev 790)
@@ -79,7 +79,7 @@
 
         # Use the active obj and select it.
         ob_new = obj_act
-        ob_new.selected = True
+        ob_new.select = True
 
         if obj_act.mode == 'OBJECT':
             # Get existing mesh datablock.
@@ -104,7 +104,7 @@
 
         # Link new object to the given scene and select it.
         scene.objects.link(ob_new)
-        ob_new.selected = True
+        ob_new.select = True
 
         # Place the object at the 3D cursor location.
         # apply viewRotaion
@@ -116,7 +116,7 @@
             bpy.ops.object.mode_set(mode='OBJECT')
 
             # Select the active object as well.
-            obj_act.selected = True
+            obj_act.select = True
 
             # Apply location of new object.
             scene.update()

Modified: trunk/py/scripts/addons/add_mesh_pipe_joint.py
===================================================================
--- trunk/py/scripts/addons/add_mesh_pipe_joint.py	2010-07-15 00:35:57 UTC (rev 789)
+++ trunk/py/scripts/addons/add_mesh_pipe_joint.py	2010-07-15 16:56:27 UTC (rev 790)
@@ -196,7 +196,7 @@
 
         # Link new object to the given scene and select it.
         scene.objects.link(ob_new)
-        ob_new.selected = True
+        ob_new.select = True
 
         # Place the object at the 3D cursor location.
         ob_new.matrix_world = align_matrix
@@ -207,7 +207,7 @@
             bpy.ops.object.mode_set(mode='OBJECT')
 
             # Select the active object as well.
-            obj_act.selected = True
+            obj_act.select = True
 
             # Apply location of new object.
             scene.update()

Modified: trunk/py/scripts/addons/add_mesh_solid.py
===================================================================
--- trunk/py/scripts/addons/add_mesh_solid.py	2010-07-15 00:35:57 UTC (rev 789)
+++ trunk/py/scripts/addons/add_mesh_solid.py	2010-07-15 16:56:27 UTC (rev 790)
@@ -85,7 +85,7 @@
 
         # Use the active obj and select it.
         ob_new = obj_act
-        ob_new.selected = True
+        ob_new.select = True
 
         if obj_act.mode == 'OBJECT':
             # Get existing mesh datablock.
@@ -110,7 +110,7 @@
 
         # Link new object to the given scene and select it.
         scene.objects.link(ob_new)
-        ob_new.selected = True
+        ob_new.select = True
 
         # Place the object at the 3D cursor location.
         ob_new.location = scene.cursor_location
@@ -123,7 +123,7 @@
             bpy.ops.object.mode_set(mode='OBJECT')
 
             # Select the active object as well.
-            obj_act.selected = True
+            obj_act.select = True
 
             # Apply location of new object.
             scene.update()

Modified: trunk/py/scripts/addons/add_mesh_twisted_torus.py
===================================================================
--- trunk/py/scripts/addons/add_mesh_twisted_torus.py	2010-07-15 00:35:57 UTC (rev 789)
+++ trunk/py/scripts/addons/add_mesh_twisted_torus.py	2010-07-15 16:56:27 UTC (rev 790)
@@ -96,7 +96,7 @@
 
         # Use the active obj and select it.
         ob_new = obj_act
-        ob_new.selected = True
+        ob_new.select = True
 
         if obj_act.mode == 'OBJECT':
             # Get existing mesh datablock.
@@ -121,7 +121,7 @@
 
         # Link new object to the given scene and select it.
         scene.objects.link(ob_new)
-        ob_new.selected = True
+        ob_new.select = True
 
         # Place the object at the 3D cursor location.
         # apply viewRotaion
@@ -133,7 +133,7 @@
             bpy.ops.object.mode_set(mode='OBJECT')
 
             # Select the active object as well.
-            obj_act.selected = True
+            obj_act.select = True
 
             # Apply location of new object.
             scene.update()

Modified: trunk/py/scripts/addons/curve_simplify.py
===================================================================
--- trunk/py/scripts/addons/curve_simplify.py	2010-07-15 00:35:57 UTC (rev 789)
+++ trunk/py/scripts/addons/curve_simplify.py	2010-07-15 16:56:27 UTC (rev 790)
@@ -288,7 +288,7 @@
     # create ne object and put into scene
     newCurve = bpy.data.objects.new("simple_"+obj.name, curve)
     scene.objects.link(newCurve)
-    newCurve.selected = True
+    newCurve.select = True
     scene.objects.active = newCurve
     newCurve.matrix_world = obj.matrix_world
 
@@ -303,7 +303,7 @@
 def getFcurveData(obj):
     fcurves = []
     for fc in obj.animation_data.action.fcurves:
-        if fc.selected:
+        if fc.select:
             fcVerts = [vcVert.co.copy().resize3D()
                         for vcVert in fc.keyframe_points.values()]
             fcurves.append(fcVerts)
@@ -312,7 +312,7 @@
 def selectedfcurves(obj):
     fcurves_sel = []
     for i, fc in enumerate(obj.animation_data.action.fcurves):
-        if fc.selected:
+        if fc.select:
             fcurves_sel.append(fc)
     return fcurves_sel
 

Modified: trunk/py/scripts/addons/io_anim_camera.py
===================================================================
--- trunk/py/scripts/addons/io_anim_camera.py	2010-07-15 00:35:57 UTC (rev 789)
+++ trunk/py/scripts/addons/io_anim_camera.py	2010-07-15 16:56:27 UTC (rev 790)
@@ -39,7 +39,7 @@
 def writeCameras(context, filepath, frame_start, frame_end, only_selected=False):
 
     data_attrs = ['lens', 'shift_x', 'shift_y', 'dof_distance', 'clip_start', 'clip_end', 'draw_size']
-    obj_attrs = ['restrict_render']
+    obj_attrs = ['hide_render']
 
     fw = open(filepath, 'w').write
 
@@ -48,7 +48,7 @@
     cameras = []
 
     for obj in scene.objects:
-        if only_selected and not obj.selected:

@@ Diff output truncated at 10240 characters. @@



More information about the Bf-extensions-cvs mailing list