API
Search…
ContextPlugin
Process once, with Context as input.
Source
Added
Link
1.3.0
Inherits Plugin

Public Functions

Output
Method

Usage

The ContextPlugin is used for processing an entire scene or workspace. It is typically used during the collection portion of publishing, where data is identified and encapsulated in one or more Instances, but can in general be used for any processing that doesn't require access to any particular Instance.

Example

1
import pyblish.api as pyblish
2
3
class MyCollector(pyblish.ContextPlugin):
4
order = pyblish.CollectorOrder
5
6
def process(self, context):
7
context.create_instance("MyInstance")
Copied!
Last modified 1yr ago