mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 22:02:15 +01:00
Fixed logging issue, return validation result, changed decorator to staticmethod
This commit is contained in:
parent
612445011d
commit
2e3dbaf047
1 changed files with 10 additions and 5 deletions
|
|
@ -39,17 +39,22 @@ class ValidateVRayTranslatorEnabled(pyblish.api.ContextPlugin):
|
|||
node = vray_settings[0]
|
||||
|
||||
if not cmds.getAttr("{}.vrscene_on".format(node)):
|
||||
self.info.error("Export vrscene not enabled")
|
||||
cls.log.error("Export vrscene not enabled")
|
||||
invalid = True
|
||||
|
||||
if not cmds.getAttr("{}.misc_eachFrameInFile".format(node)):
|
||||
self.info.error("Each Frame in File not enabled")
|
||||
cls.log.error("Each Frame in File not enabled")
|
||||
invalid = True
|
||||
|
||||
vrscene_filename = cmds.getAttr("{}.vrscene_filename".format(node))
|
||||
if vrscene_filename != "vrayscene/<Scene>/<Scene>_<Layer>/<Layer>":
|
||||
self.info.error("Template for file name is wrong")
|
||||
cls.log.error("Template for file name is wrong")
|
||||
invalid = True
|
||||
|
||||
@classmethod
|
||||
def repair(cls, context):
|
||||
return invalid
|
||||
|
||||
@staticmethod
|
||||
def repair():
|
||||
|
||||
vray_settings = cmds.ls(type="VRaySettingsNode")
|
||||
if not vray_settings:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue