mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
12 lines
291 B
Python
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()
|