ContextPlugin

Process once, with Context as input.

Source

Added

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

import pyblish.api as pyblish

class MyCollector(pyblish.ContextPlugin):
    order = pyblish.CollectorOrder

    def process(self, context):
        context.create_instance("MyInstance")

Last updated