Skip to content

closeAE

Close AE after publish. For Webpublishing only.

CloseAE

Bases: ContextPlugin

Close AE after publish. For Webpublishing only.

Source code in client/ayon_aftereffects/plugins/publish/closeAE.py
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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 = ["automated"]

    def process(self, context):
        self.log.info("CloseAE")

        stub = get_stub()
        self.log.info("Shutting down AE")
        stub.save()
        stub.close()
        self.log.info("AE closed")