families specified will run when there’s no instance with that family.
import pyblish.api class ValidateModelOrRig(pyblish.api.ContextPlugin): order = pyblish.api.ValidatorOrder label = "Run only for family of model or rig" families = ['model', 'rig'] def process(self, context): self.log.warning("Processing Model or Rig")
The above will show up in the GUI and will actually process even when no instance of
rig is present, but another is (e.g.
foobar). The above will also run when there are no instances at all.
I’d expect anything with
families specified should only run when at least one instance is available with at least one of those families.
As such the above should only run if there are instances present of family
model. When those are present it should run only once, like any
Tested in version Pyblish 1.31