[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [1685] trunk/py/scripts/addons/ io_scene_fbx/__init__.py: missed committing the change to FBX export operator with recent changes.

Campbell Barton ideasman42 at gmail.com
Tue Mar 8 22:47:13 CET 2011


Revision: 1685
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=1685
Author:   campbellbarton
Date:     2011-03-08 21:47:08 +0000 (Tue, 08 Mar 2011)
Log Message:
-----------
missed committing the change to FBX export operator with recent changes.

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

Modified: trunk/py/scripts/addons/io_scene_fbx/__init__.py
===================================================================
--- trunk/py/scripts/addons/io_scene_fbx/__init__.py	2011-03-08 07:51:40 UTC (rev 1684)
+++ trunk/py/scripts/addons/io_scene_fbx/__init__.py	2011-03-08 21:47:08 UTC (rev 1685)
@@ -40,7 +40,7 @@
 
 
 import bpy
-from bpy.props import StringProperty, BoolProperty, FloatProperty
+from bpy.props import StringProperty, BoolProperty, FloatProperty, EnumProperty
 from io_utils import ExportHelper
 
 
@@ -76,13 +76,21 @@
     ANIM_OPTIMIZE_PRECISSION = FloatProperty(name="Precision", description="Tolerence for comparing double keyframes (higher for greater accuracy)", min=1, max=16, soft_min=1, soft_max=16, default=6.0)
 # 	ANIM_ACTION_ALL = BoolProperty(name="Current Action", description="Use actions currently applied to the armatures (use scene start/end frame)", default=True)
     ANIM_ACTION_ALL = BoolProperty(name="All Actions", description="Use all actions for armatures, if false, use current action", default=False)
-    # batch
-    BATCH_ENABLE = BoolProperty(name="Enable Batch", description="Automate exporting multiple scenes or groups to files", default=False)
-    BATCH_GROUP = BoolProperty(name="Group > File", description="Export each group as an FBX file, if false, export each scene as an FBX file", default=False)
+
+    batch_mode = EnumProperty(items=(
+            ('OFF', "Off", "Active scene to file"),
+            ('SCENE', "Scene", "Each scene as a file"),
+            ('GROUP', "Group", "Each group as a file"),
+            ),
+                name="Batch Mode")
+
     BATCH_OWN_DIR = BoolProperty(name="Own Dir", description="Create a dir for each exported file", default=True)
-    BATCH_FILE_PREFIX = StringProperty(name="Prefix", description="Prefix each file with this name", maxlen=1024, default="")
     use_metadata = BoolProperty(name="Use Metadata", default=True, options={'HIDDEN'})
 
+    @property
+    def check_extension(self):
+        return self.batch_mode == 'OFF'
+
     def execute(self, context):
         import math
         from mathutils import Matrix



More information about the Bf-extensions-cvs mailing list