Set context settings on startup.

This commit is contained in:
Toke Jepsen 2019-07-26 08:11:48 +01:00
parent e5fd39d911
commit e36f289f44

View file

@ -23,6 +23,7 @@ from pypeapp import Logger
# for handler in Logger.logging.root.handlers[:]]:
# if "pype" not in str(name).lower():
# Logger.logging.root.removeHandler(handler)
from . import lib
self = sys.modules[__name__]
@ -138,6 +139,9 @@ def install():
if launch_workfiles:
nuke.addOnCreate(launch_workfiles_app, nodeClass="Root")
# Set context settings.
nuke.addOnCreate(lib.set_context_settings, nodeClass="Root")
def launch_workfiles_app():
if not self.workfiles_launched: