ayon-core/openpype/plugins/publish/collect_time.py
2021-04-01 18:54:46 +02:00

12 lines
291 B
Python

import pyblish.api
from avalon import api
class CollectTime(pyblish.api.ContextPlugin):
"""Store global time at the time of publish"""
label = "Collect Current Time"
order = pyblish.api.CollectorOrder
def process(self, context):
context.data["time"] = api.time()