Skip to content
Snippets Groups Projects
Commit 739671f8 authored by Benoit Muller's avatar Benoit Muller
Browse files

Feedback from Marmalade users: fix typo error when exporting all animation...

Feedback from Marmalade users: fix typo error when exporting all animation frames. Add warning in Verbose mode on frame_preview_end.
parent dbfbc810
No related branches found
No related tags found
No related merge requests found
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
bl_info = { bl_info = {
"name": "Marmalade Cross-platform Apps (.group)", "name": "Marmalade Cross-platform Apps (.group)",
"author": "Benoit Muller", "author": "Benoit Muller",
"version": (0, 5, 1), "version": (0, 5, 2),
"blender": (2, 6, 0), "blender": (2, 6, 0),
"location": "File > Export > Marmalade cross-platform Apps (.group)", "location": "File > Export > Marmalade cross-platform Apps (.group)",
"description": "Export Marmalade Format files (.group)", "description": "Export Marmalade Format files (.group)",
...@@ -1389,7 +1389,7 @@ def WriteKeyedAnimationSet(Config, Scene): ...@@ -1389,7 +1389,7 @@ def WriteKeyedAnimationSet(Config, Scene):
keyframeTimes.add(int(Keyframe.co[0])) keyframeTimes.add(int(Keyframe.co[0]))
else: else:
# Exports all frames # Exports all frames
keyframeTimes.update(range(scene.frame_start, scene.frame_end + 1, 1)) keyframeTimes.update(range(Scene.frame_start, Scene.frame_end + 1, 1))
keyframeTimes = list(keyframeTimes) keyframeTimes = list(keyframeTimes)
keyframeTimes.sort() keyframeTimes.sort()
if len(keyframeTimes): if len(keyframeTimes):
...@@ -1481,10 +1481,18 @@ def WriteKeyedAnimationSet(Config, Scene): ...@@ -1481,10 +1481,18 @@ def WriteKeyedAnimationSet(Config, Scene):
keyframeTimes.add(int(Keyframe.co[0])) keyframeTimes.add(int(Keyframe.co[0]))
else: else:
# Exports all frame # Exports all frame
keyframeTimes.update(range(scene.frame_start, scene.frame_end + 1, 1)) keyframeTimes.update(range(Scene.frame_start, Scene.frame_end + 1, 1))
keyframeTimes = list(keyframeTimes) keyframeTimes = list(keyframeTimes)
keyframeTimes.sort() keyframeTimes.sort()
if Config.Verbose:
print("Exporting frames: ")
print(keyframeTimes)
if (Scene.frame_preview_end > Scene.frame_end):
print(" WARNING: END Frame of animation in UI preview is Higher than the Scene Frame end:\n Scene.frame_end %d versus Scene.frame_preview_end %d.\n"
% (Scene.frame_end, Scene.frame_preview_end))
print(" => You might need to change the Scene End Frame, to match the current UI preview frame end...\n=> if you don't want to miss end of animation.\n")
if len(keyframeTimes): if len(keyframeTimes):
#Create the anim file #Create the anim file
animfullname = os.path.dirname(Config.FilePath) + "\\anims\\%s.anim" % (StripName(Object.name)) animfullname = os.path.dirname(Config.FilePath) + "\\anims\\%s.anim" % (StripName(Object.name))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment