nuke plugins work

This commit is contained in:
Jakub Jezek 2018-10-07 08:14:01 +02:00
parent e2a600bf78
commit ff0faa176d
3 changed files with 7 additions and 2 deletions

View file

@ -3,6 +3,8 @@ import sys
import imp
from app.lib import templ
from pyblish import api as pyblish
from avalon import api as avalon
@ -16,6 +18,10 @@ PLUGINS_DIR = os.path.join(PACKAGE_DIR, "plugins")
PUBLISH_PATH = os.path.join(PLUGINS_DIR, "global", "publish")
LOAD_PATH = os.path.join(PLUGINS_DIR, "global", "load")
__all__ = [
"templ",
]
def install():
print("Registering global plug-ins..")

View file

@ -19,7 +19,6 @@ class CrateWriteExr(avalon.api.Creator):
# nuke = getattr(sys.modules["__main__"], "nuke", None)
data = {}
ext = "exr"
root, nodes = avalon.nuke.get_current_script()
# todo: improve method of getting current environment
# todo: pref avalon.Session over os.environ

View file

@ -27,7 +27,7 @@ class ValidateSettingsNuke(pyblish.api.Validator):
except KeyError:
print(
"No resolution information found for \"{0}\".".format(
project["name"]
asset["name"]
)
)
return