Merge branch 'develop' into feature/OP-3593_Move-load-functions-into-pipeline

This commit is contained in:
Jakub Trllo 2022-07-25 10:35:33 +02:00
commit 33464794be
44 changed files with 1927 additions and 196 deletions

View file

@ -4,7 +4,6 @@ import logging
import pyblish.api
from openpype import lib
from openpype.lib import register_event_callback
from openpype.pipeline import (
register_loader_plugin_path,
@ -14,6 +13,7 @@ from openpype.pipeline import (
AVALON_CONTAINER_ID,
)
from openpype.pipeline.load import get_outdated_containers
from openpype.pipeline.context_tools import get_current_project_asset
import openpype.hosts.harmony
import openpype.hosts.harmony.api as harmony
@ -49,7 +49,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")

View file

@ -55,6 +55,10 @@ class ValidateSceneSettings(pyblish.api.InstancePlugin):
def process(self, instance):
"""Plugin entry point."""
# TODO 'get_asset_settings' could expect asset document as argument
# which is available on 'context.data["assetEntity"]'
# - the same approach can be used in 'ValidateSceneSettingsRepair'
expected_settings = harmony.get_asset_settings()
self.log.info("scene settings from DB:".format(expected_settings))