mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
29 lines
637 B
Python
29 lines
637 B
Python
# -*- coding: utf-8 -*-
|
|
"""Close AE after publish. For Webpublishing only."""
|
|
import os
|
|
|
|
import pyblish.api
|
|
|
|
from avalon import aftereffects
|
|
|
|
|
|
class CloseAE(pyblish.api.ContextPlugin):
|
|
"""Close AE after publish. For Webpublishing only.
|
|
"""
|
|
|
|
order = pyblish.api.IntegratorOrder + 14
|
|
label = "Close AE"
|
|
optional = True
|
|
active = True
|
|
|
|
hosts = ["aftereffects"]
|
|
targets = ["remotepublish"]
|
|
|
|
def process(self, context):
|
|
self.log.info("CloseAE")
|
|
|
|
stub = aftereffects.stub()
|
|
self.log.info("Shutting down AE")
|
|
stub.save()
|
|
stub.close()
|
|
self.log.info("AE closed")
|