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
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
class CollectWorkfile(pyblish.api.ContextPlugin):
    """Collect the current working file into context"""

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

    def process(self, instance):

        active_timeline = hiero.ui.activeSequence()
        project = active_timeline.project()

        current_file = project.path()

        instance.data["currentFile"] = current_file