Skip to content

add_publish_highlight

AddPublishHighlight

Bases: InstancePlugin

Revert back rendered comp name and add publish highlight

Source code in client/ayon_aftereffects/plugins/publish/add_publish_highlight.py
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
class AddPublishHighlight(pyblish.api.InstancePlugin):
    """
        Revert back rendered comp name and add publish highlight
    """

    label = "Add render highlight"
    order = pyblish.api.IntegratorOrder + 8.0
    hosts = ["aftereffects"]
    families = ["render.farm"]
    optional = True

    def process(self, instance):
        stub = get_stub()
        item = instance.data
        # comp name contains highlight icon
        stub.rename_item(item["comp_id"], item["comp_name"])