move global plugins one folder up

This commit is contained in:
Milan Kolar 2021-02-16 18:24:04 +01:00
parent 92986547f0
commit e91304129f
48 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,15 @@
import pyblish.api
class ValidateCurrentSaveFile(pyblish.api.ContextPlugin):
"""File must be saved before publishing"""
label = "Validate File Saved"
order = pyblish.api.ValidatorOrder - 0.1
hosts = ["maya", "houdini", "nuke"]
def process(self, context):
current_file = context.data["currentFile"]
if not current_file:
raise RuntimeError("File not saved")