InstancePlugin

Process once per Instance.

Source

Added

1.3.0

Inherits Plugin

Public Functions

Output

Method

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