mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
AY-4801-removed profile filtering
This commit is contained in:
parent
663ace6c8f
commit
0a45c5f8ff
1 changed files with 1 additions and 21 deletions
|
|
@ -6,7 +6,7 @@ import opentimelineio
|
|||
|
||||
import pyblish.api
|
||||
|
||||
from ayon_core.lib import filter_profiles, get_ffmpeg_tool_args, run_subprocess
|
||||
from ayon_core.lib import get_ffmpeg_tool_args, run_subprocess
|
||||
from ayon_core.pipeline import publish
|
||||
|
||||
|
||||
|
|
@ -81,26 +81,6 @@ class ExtractEditorialPckgConversion(publish.Extractor):
|
|||
os.makedirs(publish_resource_folder, exist_ok=True)
|
||||
return publish_resource_folder
|
||||
|
||||
def _get_output_definition(self, instance, profiles):
|
||||
"""Return appropriate profile by context information."""
|
||||
product_type = instance.data["productType"]
|
||||
product_name = instance.data["productName"]
|
||||
task_entity = instance.data["taskEntity"] or {}
|
||||
task_name = task_entity.get("name")
|
||||
task_type = task_entity.get("taskType")
|
||||
filtering_criteria = {
|
||||
"product_types": product_type,
|
||||
"product_names": product_name,
|
||||
"task_names": task_name,
|
||||
"task_types": task_type,
|
||||
}
|
||||
profile = filter_profiles(
|
||||
profiles,
|
||||
filtering_criteria,
|
||||
logger=self.log
|
||||
)
|
||||
return profile
|
||||
|
||||
def _get_resource_path_mapping(self, instance, transfers):
|
||||
"""Returns dict of {source_mov_path: rootless_published_path}."""
|
||||
replace_paths = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue