mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
24 lines
503 B
Python
24 lines
503 B
Python
"""
|
|
Requires:
|
|
config_data -> colorspace.default
|
|
config_data -> dataflow.default
|
|
|
|
Provides:
|
|
context -> presets
|
|
"""
|
|
|
|
from pyblish import api
|
|
from pype.api import get_current_project_settings
|
|
|
|
|
|
class CollectPresets(api.ContextPlugin):
|
|
"""Collect Presets."""
|
|
|
|
order = api.CollectorOrder - 0.491
|
|
label = "Collect Presets"
|
|
|
|
def process(self, context):
|
|
project_settings = get_current_project_settings()
|
|
context.data["presets"] = project_settings
|
|
|
|
return
|