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:
authorBastien Montagne <montagne29@wanadoo.fr>2015-06-26 20:07:47 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2015-06-26 20:07:47 +0300
commit8c41091be72ecbbf5b14d85b0c11a90dcc98db8b (patch)
treeae5426e7ef630b59c51b2ab59833736b4d881455 /io_scene_fbx/__init__.py
parent1b1ad4665b852c1c52dcbdb0176cf2eb7f0d88f8 (diff)
FBX import: add a setting to define a custom animation offset value, in frames.
In theory, Blender's animations start at frame 1, while FBX ones start at t0, but looks like users need tweaking ability here too! ;)
Diffstat (limited to 'io_scene_fbx/__init__.py')
-rw-r--r--io_scene_fbx/__init__.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/io_scene_fbx/__init__.py b/io_scene_fbx/__init__.py
index 2bde95a2..48ace034 100644
--- a/io_scene_fbx/__init__.py
+++ b/io_scene_fbx/__init__.py
@@ -21,7 +21,7 @@
bl_info = {
"name": "FBX format",
"author": "Campbell Barton, Bastien Montagne, Jens Restemeier",
- "version": (3, 3, 5),
+ "version": (3, 3, 6),
"blender": (2, 74, 0),
"location": "File > Import-Export",
"description": "FBX IO meshes, UV's, vertex colors, materials, textures, cameras, lamps and actions",
@@ -108,6 +108,12 @@ class ImportFBX(bpy.types.Operator, ImportHelper, IOFBXOrientationHelper):
default=0.0,
)
+ anim_offset = FloatProperty(
+ name="Animation Offset",
+ description="Offset to apply to animation during import, in frames",
+ default=1.0,
+ )
+
use_custom_props = BoolProperty(
name="Import User Properties",
description="Import user properties as custom properties",
@@ -179,6 +185,8 @@ class ImportFBX(bpy.types.Operator, ImportHelper, IOFBXOrientationHelper):
# layout.prop(self, "use_alpha_decals")
layout.prop(self, "decal_offset")
+ layout.prop(self, "anim_offset")
+
layout.prop(self, "use_custom_props")
sub = layout.row()
sub.enabled = self.use_custom_props