[Bf-extensions-cvs] [5f3f757] master: New option for the amaranth addon: Use current framerate as amount of frames to jump forward / backward on Shift+Up and Shift+Down.

Thomas Beck noreply at git.blender.org
Tue Aug 12 20:16:40 CEST 2014


Commit: 5f3f757127b7392a6980018adc80237a9b815f27
Author: Thomas Beck
Date:   Tue Aug 12 20:10:10 2014 +0200
Branches: master
https://developer.blender.org/rBAC5f3f757127b7392a6980018adc80237a9b815f27

New option for the amaranth addon: Use current framerate as amount of frames to jump forward / backward on Shift+Up and Shift+Down.

This way you can easily change your time in 1 sec steps, no matter what framerate you set previously (esp. useful for motion graphics).

Hints:
- It's not enabled by default to keep the blender defaults, use the addon preferences to activate this functionality.
- When you set a framerate with a multiplier different than 1, the multiplier is not taken into account for the frame skip operation - 1 is always used

===================================================================

M	scene_amaranth_toolset.py

===================================================================

diff --git a/scene_amaranth_toolset.py b/scene_amaranth_toolset.py
index cf792bf..b234760 100755
--- a/scene_amaranth_toolset.py
+++ b/scene_amaranth_toolset.py
@@ -20,7 +20,7 @@ bl_info = {
     "name": "Amaranth Toolset",
     "author": "Pablo Vazquez, Bassam Kurdali, Sergey Sharybin, Lukas Tönne",
     "version": (0, 9, 4),
-    "blender": (2, 70),
+    "blender": (2, 71),
     "location": "Everywhere!",
     "description": "A collection of tools and settings to improve productivity",
     "warning": "",
@@ -93,6 +93,12 @@ class AmaranthToolsetPreferences(AddonPreferences):
                 default=10,
                 min=1)
 
+    use_framerate = BoolProperty(
+        name="Framerate Jump",
+        description="Jump the amount of frames forward/backward that you have set as your framerate",
+        default=False,
+    )
+
     use_layers_for_render = BoolProperty(
             name="Current Layers for Render",
             description="Save the layers that should be enabled for render",
@@ -122,6 +128,7 @@ class AmaranthToolsetPreferences(AddonPreferences):
         sub.prop(self, "use_timeline_extra_info")
         sub.prop(self, "use_scene_stats")
         sub.prop(self, "use_layers_for_render")
+        sub.prop(self, "use_framerate")
 
         sub.separator()
 
@@ -137,7 +144,7 @@ class AmaranthToolsetPreferences(AddonPreferences):
             text="Refresh the current Scene. Hotkey: F5 or in Specials menu [W]")
 
         sub.separator()
-        sub.label(text="") # General
+        sub.label(text="") # General icon
         sub.label(
             text="Quickly save and reload the current file (no warning!). "
                  "File menu or Ctrl+Shift+W")
@@ -145,7 +152,9 @@ class AmaranthToolsetPreferences(AddonPreferences):
             text="SMPTE Timecode and frames left/ahead on Timeline's header")
         sub.label(
             text="Display extra statistics for Scenes, Cameras, and Meshlights (Cycles)")
-
+        sub.label(text="Save the set of layers that should be activated for a final render")
+        sub.label(text="Jump the amount of frames forward/backward that you've set as your framerate")
+        
         sub.separator()
         sub.label(text="") # Nodes
         sub.label(
@@ -2369,10 +2378,14 @@ class AMTH_SCREEN_OT_frame_jump(Operator):
         scene = context.scene
         preferences = context.user_preferences.addons[__name__].preferences
 
+        if preferences.use_framerate:
+            framedelta = scene.render.fps
+        else:
+            framedelta = preferences.frames_jump
         if self.forward:
-            scene.frame_current = scene.frame_current + preferences.frames_jump
+            scene.frame_current = scene.frame_current + framedelta
         else:
-            scene.frame_current = scene.frame_current - preferences.frames_jump
+            scene.frame_current = scene.frame_current - framedelta
 
         return{'FINISHED'}



More information about the Bf-extensions-cvs mailing list