ValidatorOrder

A validator determines whether or not an instance is valid.




Illustration

  _______                                  _____
         |                                |
input    |------ is valid? ----- yes ---->|  output
  _______|           |                    |_____
     ^               |
     |               no
     |               |
     |_______________|




Example

import pyblish.api as pyblish

class MyValidator(pyblish.InstancePlugin):
    """Documentation goes here"""

    order = pyblish.ValidatorOrder

    def process(self, instance):
        self.log.info("something")
Fri Aug 18 2017 08:16:29 GMT+0000 (UTC)

results matching ""

    No results matching ""