Skip to content

collect_workfile

CollectWorkfile

Bases: ContextPlugin

Collect the current working file into context

Source code in client/ayon_hiero/plugins/publish/collect_workfile.py
 5
 6
 7
 8
 9
10
11
12
13
14
class CollectWorkfile(pyblish.api.ContextPlugin):
    """Collect the current working file into context"""

    label = "Collect Workfile"
    hosts = ["hiero"]
    order = pyblish.api.CollectorOrder - 0.5

    def process(self, context):
        host = registered_host()
        context.data["currentFile"] = host.get_current_workfile()