Skip to content

closePS

Close PS after publish. For Webpublishing only.

ClosePS

Bases: ContextPlugin

Close PS after publish. For Webpublishing only.

Source code in client/ayon_photoshop/plugins/publish/closePS.py
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
class ClosePS(pyblish.api.ContextPlugin):
    """Close PS after publish. For Webpublishing only.
    """

    order = pyblish.api.IntegratorOrder + 14
    label = "Close PS"
    optional = True
    active = True

    hosts = ["photoshop"]
    targets = ["automated"]

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

        stub = photoshop.stub()
        self.log.info("Shutting down PS")
        stub.save()
        stub.close()
        self.log.info("PS closed")