Skip to content

collect_farm_instances

CollectFarmInstances

Bases: MayaInstancePlugin

Collect Farm Instances for remote publish

Source code in client/ayon_maya/plugins/publish/collect_farm_instances.py
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
class CollectFarmInstances(plugin.MayaInstancePlugin):
    """Collect Farm Instances for remote publish
    """

    order = pyblish.api.CollectorOrder + 0.223
    label = "Collect Farm Instances"
    families = ["ass", "animation", "pointcache",
                "oxcache", "proxyAbc", "redshiftproxy",
                "vrayproxy", "xgen", "yeticache"]
    targets = ["local"]

    def process(self, instance):
        if instance.data.get("farm"):
            instance.data["families"].append("remote_publish_on_farm")

CollectRemoteCacheInstances

Bases: MayaInstancePlugin

Collect Cache instances for publish, only works for headless mode

Source code in client/ayon_maya/plugins/publish/collect_farm_instances.py
21
22
23
24
25
26
27
28
29
30
31
32
class CollectRemoteCacheInstances(plugin.MayaInstancePlugin):
    """Collect Cache instances for publish, only works for headless mode

    """

    order = pyblish.api.CollectorOrder + 0.223
    label = "Collect Remote Cache Instances"
    targets = ["remote"]

    def process(self, instance):
        self.log.debug("Processing Cache Farm Instances.")
        instance.data["farm"] = False