InstancePlugin

Process once per Instance.

Inherits Plugin

Public Functions

Usage

The InstancePlugin is used for processing each individual instance. It is typically used on Instances created during Collection, either to validate or extract, but can be thought of as just a general process on each available Instance.

Example

import pyblish.api as pyblish

class MyValidator(pyblish.InstancePlugin):
    order = pyblish.ValidatorOrder

    def process(self, instance):
        assert instance.data["name"] == "MyInstance"

Last updated