InstancePlugin

Process once per Instancearrow-up-right.

Source

Added

Inherits Plugin

Public Functions

Output

Method

Usage

The InstancePlugin is used for processing each individual instance. It is typically used on Instancesarrow-up-right created during Collectionarrow-up-right, either to validate or extract, but can be thought of as just a general process on each available Instancearrow-up-right.

Example

import pyblish.api as pyblish

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

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

Last updated