CollectorOrder

Collectors create instances.




Example

import os
import pyblish.api as pyblish

class MyCollector(pyblish.ContextPlugin):
    """This plug-in identifies content and creates instances"""

    order = pyblish.CollectorOrder

    def process(self, context):
        for folder in os.listdir("."):
            if not folder.endswith("_asset"):
                continue
            instance = context.create_instance(folder)
            instance.data["family"] = "asset"
Fri Aug 18 2017 08:16:29 GMT+0000 (UTC)

results matching ""

    No results matching ""