Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-03-09 00:47:08 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-03-09 00:47:08 +0300
commit5d013287b93a364389b1b523a36a539077be9aa2 (patch)
tree69e36aeaf921b72deb253ad9f33a37e3eae3c4dc /io_scene_fbx
parentf85cb5c36fb79629791d03a146c17370f9fd9f5f (diff)
missed committing the change to FBX export operator with recent changes.
Diffstat (limited to 'io_scene_fbx')
-rw-r--r--io_scene_fbx/__init__.py18
1 files changed, 13 insertions, 5 deletions
diff --git a/io_scene_fbx/__init__.py b/io_scene_fbx/__init__.py
index c2da7e2d..8147b6c1 100644
--- a/io_scene_fbx/__init__.py
+++ b/io_scene_fbx/__init__.py
@@ -40,7 +40,7 @@ if "bpy" in locals():
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 @@ class ExportFBX(bpy.types.Operator, ExportHelper):
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