API
Search…
CollectorOrder
Collectors create instances.

Example

1
import os
2
import pyblish.api as pyblish
3
4
class MyCollector(pyblish.ContextPlugin):
5
"""This plug-in identifies content and creates instances"""
6
7
order = pyblish.CollectorOrder
8
9
def process(self, context):
10
for folder in os.listdir("."):
11
if not folder.endswith("_asset"):
12
continue
13
instance = context.create_instance(folder)
14
instance.data["family"] = "asset"
Copied!
{{ file.mtime }}
Last modified 1yr ago
Copy link
Contents
Example