From 9392687b15980d8ba2cdfe733dce4ea5517d8618 Mon Sep 17 00:00:00 2001 From: Thomas Fricard Date: Wed, 22 Mar 2023 12:40:42 +0100 Subject: [PATCH] set framerange with or without handles based on the current task type --- openpype/hosts/maya/api/lib.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/openpype/hosts/maya/api/lib.py b/openpype/hosts/maya/api/lib.py index 10bb3ec2db..4bf57c1b87 100644 --- a/openpype/hosts/maya/api/lib.py +++ b/openpype/hosts/maya/api/lib.py @@ -2140,8 +2140,12 @@ def get_frame_range(): # Set frame start/end project_name = legacy_io.active_project() + task_name = legacy_io.Session["AVALON_TASK"] asset_name = legacy_io.Session["AVALON_ASSET"] asset = get_asset_by_name(project_name, asset_name) + settings = get_project_settings(project_name) + task_name = legacy_io.Session["AVALON_TASK"] + with_handles = settings['maya']['with_handles']["handles_task_types"] frame_start = asset["data"].get("frameStart") frame_end = asset["data"].get("frameEnd")