use 'get_current_project_asset' in hosts

This commit is contained in:
Jakub Trllo 2022-07-15 15:57:01 +02:00
parent 35bd841939
commit ad8a7c86e4
14 changed files with 55 additions and 35 deletions

View file

@ -15,6 +15,7 @@ from openpype.pipeline import (
deregister_creator_plugin_path,
AVALON_CONTAINER_ID,
)
from openpype.pipeline.context_tools import get_current_project_asset
import openpype.hosts.harmony
import openpype.hosts.harmony.api as harmony
@ -50,7 +51,9 @@ def get_asset_settings():
dict: Scene data.
"""
asset_data = lib.get_asset()["data"]
asset_doc = get_current_project_asset()
asset_data = asset_doc["data"]
fps = asset_data.get("fps")
frame_start = asset_data.get("frameStart")
frame_end = asset_data.get("frameEnd")