How to run just collection?


#1

Looking to make a tool that uses the collected data from pyblish for processing.

Is it possible to run only a selection of plugins, when others are in the PYBLISHPLUGINPATH?

Basically looking to register a handful of collectors, and process the context.


#2

Try this.

import pyblish.util
context = pyblish.util.collect()

Alternatively, for finer control you could manually discover all plug-ins, and pass only the ones you want to run to publish().

import os
import pyblish.api
import pyblish.util

plugins = [p for p in pyblish.api.discover()
           if "Special" in p.__name__]
context = pyblish.util.publish(plugins=plugins)