From d72183e0a0b3936cc87d4dd5cb36e346feb82f58 Mon Sep 17 00:00:00 2001 From: Roy Nieterau Date: Fri, 25 Feb 2022 20:09:00 +0100 Subject: [PATCH] Update openpype/hosts/flame/api/utility_scripts/openpype_flame_to_ftrack/modules/ftrack_lib.py Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com> --- .../openpype_flame_to_ftrack/modules/ftrack_lib.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/openpype/hosts/flame/api/utility_scripts/openpype_flame_to_ftrack/modules/ftrack_lib.py b/openpype/hosts/flame/api/utility_scripts/openpype_flame_to_ftrack/modules/ftrack_lib.py index 7a0efe079e..6256265730 100644 --- a/openpype/hosts/flame/api/utility_scripts/openpype_flame_to_ftrack/modules/ftrack_lib.py +++ b/openpype/hosts/flame/api/utility_scripts/openpype_flame_to_ftrack/modules/ftrack_lib.py @@ -139,17 +139,7 @@ class FtrackComponentCreator: if name == "ftrackreview-mp4": duration = data["duration"] - handle_start = data.get("handleStart", None) - handle_end = data.get("handleEnd", None) - if handle_start is not None: - duration += handle_start - if handle_end is not None: - duration += handle_end - if handle_start is None and handle_end is None: - # Backwards compatibility; old style 'handles' - # We multiply by two because old-style handles defined - # both the handle start and handle end - duration += data.get("handles", 0) * 2 + handles = data["handles"] fps = data["fps"] component_data["metadata"] = {