mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
BigRoy's comments - Imporve get_frame_Range's logic
This commit is contained in:
parent
9b4c04c493
commit
b110afd12e
1 changed files with 6 additions and 4 deletions
|
|
@ -2542,7 +2542,10 @@ def get_frame_range(include_animation_range=False):
|
|||
folder_path = get_current_folder_path()
|
||||
task_name = get_current_task_name()
|
||||
|
||||
folder_entity = ayon_api.get_folder_by_path(project_name, folder_path)
|
||||
folder_entity = ayon_api.get_folder_by_path(
|
||||
project_name,
|
||||
folder_path,
|
||||
fields={"id"})
|
||||
task_entity = ayon_api.get_task_by_name(
|
||||
project_name, folder_entity["id"], task_name
|
||||
)
|
||||
|
|
@ -2573,9 +2576,8 @@ def get_frame_range(include_animation_range=False):
|
|||
# keys. That is why these are excluded by default.
|
||||
|
||||
settings = get_project_settings(project_name)
|
||||
task_type = None
|
||||
if task_entity:
|
||||
task_type = task_entity["taskType"]
|
||||
|
||||
task_type = task_entity["taskType"]
|
||||
|
||||
include_handles_settings = settings["maya"]["include_handles"]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue