From 85c028a833df307a2bd44cad287a20723a1a5e07 Mon Sep 17 00:00:00 2001 From: Jakub Trllo Date: Mon, 25 Feb 2019 10:04:47 +0100 Subject: [PATCH] fps are loaded from project --- pype/plugins/global/load/open_djv.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pype/plugins/global/load/open_djv.py b/pype/plugins/global/load/open_djv.py index ecabfd208c..467d3ef25f 100644 --- a/pype/plugins/global/load/open_djv.py +++ b/pype/plugins/global/load/open_djv.py @@ -61,16 +61,19 @@ class OpenInDJV(api.Loader): if not remainder: seqeunce = collections[0] first_image = list(seqeunce)[0] + # start = min(collections) + # end = max(collections) + # + # range = (padding % start) + '-' + (padding % end) + # filename = re.sub('%[0-9]*d', range, filename) else: first_image = self.fname filepath = os.path.normpath(os.path.join(directory, first_image)) self.log.info("Opening : {}".format(filepath)) - # file_type = filepath.split(".")[-1] - # - # # TODO Is this proper way? - context.get('project', {}).get('data', {}).get('fps', 24) + fps = context.get('project', {}).get('data', {}).get('fps', 24) + # # # TODO issequence is probably already built-in validation in ftrack