ayon-core/pype/plugins/global/publish/collect_time.py
2018-10-02 22:55:04 +02:00

12 lines
301 B
Python

import pyblish.api
from avalon import api
class CollectMindbenderTime(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()