mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 13:24:54 +01:00
14 lines
432 B
Python
14 lines
432 B
Python
import pyblish.api
|
|
|
|
from openpype.lib import change_timer_to_current_context
|
|
|
|
|
|
class StartTimer(pyblish.api.ContextPlugin):
|
|
label = "Start Timer"
|
|
order = pyblish.api.IntegratorOrder + 1
|
|
hosts = ["*"]
|
|
|
|
def process(self, context):
|
|
modules_settings = context.data["system_settings"]["modules"]
|
|
if modules_settings["timers_manager"]["disregard_publishing"]:
|
|
change_timer_to_current_context()
|