diff options
Diffstat (limited to 'release/scripts/startup/bl_operators/screen_play_rendered_anim.py')
-rw-r--r-- | release/scripts/startup/bl_operators/screen_play_rendered_anim.py | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/release/scripts/startup/bl_operators/screen_play_rendered_anim.py b/release/scripts/startup/bl_operators/screen_play_rendered_anim.py index 4253b4b8682..255852d3b26 100644 --- a/release/scripts/startup/bl_operators/screen_play_rendered_anim.py +++ b/release/scripts/startup/bl_operators/screen_play_rendered_anim.py @@ -34,13 +34,9 @@ def guess_player_path(preset): return bpy.app.binary_path elif preset == 'DJV': - player_path = "djv_view" - + player_path = "djv" if sys.platform == "darwin": - # TODO, crummy supporting only 1 version, - # could find the newest installed version - test_path = ("/Applications/djv-0.8.2.app" - "/Contents/Resources/bin/djv_view") + test_path = "/Applications/DJV2.app/Contents/Resources/bin/djv" if os.path.exists(test_path): player_path = test_path @@ -138,7 +134,13 @@ class PlayRenderedAnim(Operator): ] cmd.extend(opts) elif preset == 'DJV': - opts = [file, "-playback_speed", str(int(fps_final))] + opts = [ + file, + "-speed", str(fps_final), + "-in_out", str(frame_start), str(frame_end), + "-frame", str(scene.frame_current), + "-time_units", "Frames" + ] cmd.extend(opts) elif preset == 'FRAMECYCLER': opts = [file, f"{scene.frame_start:d}-{scene.frame_end:d}"] |