mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
move global plugins one folder up
This commit is contained in:
parent
92986547f0
commit
e91304129f
48 changed files with 0 additions and 0 deletions
15
pype/plugins/publish/validate_file_saved.py
Normal file
15
pype/plugins/publish/validate_file_saved.py
Normal 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")
|
||||
Loading…
Add table
Add a link
Reference in a new issue