Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save BigRoy/fa676e8a60d069fb6716c1ffb1189fb0 to your computer and use it in GitHub Desktop.
Save BigRoy/fa676e8a60d069fb6716c1ffb1189fb0 to your computer and use it in GitHub Desktop.
AYON Print all pyblish publish plugins targeting a particular 'family' of the publish instance (usually also the same as the product type)
from ayon_core.pipeline import registered_host
from ayon_core.pipeline.create import CreateContext
import pyblish.api
family = "pointcache"
host = registered_host()
context = CreateContext(host)
plugins = pyblish.api.plugins_by_family(context.publish_plugins, family)
for plugin in plugins:
print(f"{plugin.__name__} at order {plugin.order}: {plugin}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment