mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
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>
This commit is contained in:
parent
e00e26d3eb
commit
d72183e0a0
1 changed files with 1 additions and 11 deletions
|
|
@ -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"] = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue