mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
18 lines
460 B
Python
18 lines
460 B
Python
"""These data *must* be collected only once during publishing process.
|
|
|
|
Provides:
|
|
context -> datetimeData
|
|
"""
|
|
|
|
import pyblish.api
|
|
from openpype.api import config
|
|
|
|
|
|
class CollectDateTimeData(pyblish.api.ContextPlugin):
|
|
order = pyblish.api.CollectorOrder - 0.5
|
|
label = "Collect DateTime data"
|
|
|
|
def process(self, context):
|
|
key = "datetimeData"
|
|
if key not in context.data:
|
|
context.data[key] = config.get_datetime_data()
|