[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [1968] trunk/py/scripts/addons: - 3ds now selects all objects on import

Campbell Barton ideasman42 at gmail.com
Thu May 26 10:51:06 CEST 2011


Revision: 1968
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=1968
Author:   campbellbarton
Date:     2011-05-26 08:51:05 +0000 (Thu, 26 May 2011)
Log Message:
-----------
- 3ds now selects all objects on import
- fbx default use_selected to False

Modified Paths:
--------------
    trunk/py/scripts/addons/io_scene_3ds/import_3ds.py
    trunk/py/scripts/addons/io_scene_fbx/__init__.py

Modified: trunk/py/scripts/addons/io_scene_3ds/import_3ds.py
===================================================================
--- trunk/py/scripts/addons/io_scene_3ds/import_3ds.py	2011-05-26 08:45:31 UTC (rev 1967)
+++ trunk/py/scripts/addons/io_scene_3ds/import_3ds.py	2011-05-26 08:51:05 UTC (rev 1968)
@@ -788,6 +788,9 @@
 
     print("importing 3DS: %r..." % (filepath), end="")
 
+    if bpy.ops.object.select_all.poll():
+        bpy.ops.object.select_all(action='DESELECT')
+
     time1 = time.clock()
 # 	time1 = Blender.sys.time()
 
@@ -844,6 +847,8 @@
             if ob.parent is None:
                 ob.matrix_world = ob.matrix_world * global_matrix
 
+    for ob in importedObjects:
+        ob.select = True
 
     # Done DUMMYVERT
     """

Modified: trunk/py/scripts/addons/io_scene_fbx/__init__.py
===================================================================
--- trunk/py/scripts/addons/io_scene_fbx/__init__.py	2011-05-26 08:45:31 UTC (rev 1967)
+++ trunk/py/scripts/addons/io_scene_fbx/__init__.py	2011-05-26 08:51:05 UTC (rev 1968)
@@ -56,7 +56,7 @@
     # List of operator properties, the attributes will be assigned
     # to the class instance from the operator settings before calling.
 
-    use_selection = BoolProperty(name="Selected Objects", description="Export selected objects on visible layers", default=True)
+    use_selection = BoolProperty(name="Selected Objects", description="Export selected objects on visible layers", default=False)
 # 	EXP_OBS_SCENE = BoolProperty(name="Scene Objects", description="Export all objects in this scene", default=True)
     global_scale = FloatProperty(name="Scale", description="Scale all data, (Note! some imports dont support scaled armatures)", min=0.01, max=1000.0, soft_min=0.01, soft_max=1000.0, default=1.0)
 



More information about the Bf-extensions-cvs mailing list