API
Search…
InstancePlugin
Process once per Instance.
Source
Added
Link
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

1
import pyblish.api as pyblish
2
3
class MyValidator(pyblish.InstancePlugin):
4
order = pyblish.ValidatorOrder
5
6
def process(self, instance):
7
assert instance.data["name"] == "MyInstance"
Copied!
Last modified 1yr ago