ayon-core/pype/plugins/global/publish/collect_time.py
2019-01-28 20:31:55 +01: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()