mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
added collect datetime plugin
This commit is contained in:
parent
01fe6197a7
commit
1f6d63d6a5
1 changed files with 18 additions and 0 deletions
18
pype/plugins/global/publish/collect_datetime_data.py
Normal file
18
pype/plugins/global/publish/collect_datetime_data.py
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
"""These data *must* be collected only once during publishing process.
|
||||
|
||||
Provides:
|
||||
context -> datetimeData
|
||||
"""
|
||||
|
||||
import pyblish.api
|
||||
from pypeapp import config
|
||||
|
||||
|
||||
class CollectDateTimeData(pyblish.api.ContextPlugin):
|
||||
order = pyblish.api.CollectorOrder
|
||||
label = "Collect DateTime data"
|
||||
|
||||
def process(self, context):
|
||||
key = "datetimeData"
|
||||
if key not in context.data:
|
||||
context.data[key] = config.get_datetime_data()
|
||||
Loading…
Add table
Add a link
Reference in a new issue