Skip to content

collect_editorial_workfile

CollectEditorialWorkfile

Bases: InstancePlugin

Collect data for instances created by settings creators.

Source code in client/ayon_traypublisher/plugins/publish/collect_editorial_workfile.py
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
class CollectEditorialWorkfile(pyblish.api.InstancePlugin):
    """Collect data for instances created by settings creators."""

    label = "Collect Editorial Workfile"
    order = pyblish.api.CollectorOrder - 0.46

    hosts = ["traypublisher"]
    families = ["workfile"]

    def process(self, instance):
        creator_identifier = instance.data["creator_identifier"]
        if creator_identifier != "editorial_workfile_advanced":
            return
        # Mark instance for 'ExtractOTIOFile'
        instance.data["families"].append("otio.timeline.workfile")