Нет описания
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # Copyright (c) 2009 The Foundry Visionmongers Ltd. All Rights Reserved.
  2. ## init.py
  3. ## loaded by nuke before menu.py
  4. import os
  5. import sys
  6. import KEnv
  7. nuke.pluginAddPath('./gizmos')
  8. nuke.pluginAddPath('./icons')
  9. nuke.pluginAddPath('./ndk')
  10. # KEnv
  11. try:
  12. project = os.getenv('PROJECT')
  13. except:
  14. project = "GEN"
  15. env = KEnv.create(PROJECT=project, APP_ID='nuke')
  16. PYTHON_LIBS_NUKE = env.get('PYTHON_LIBS_NUKE')
  17. # project path
  18. try:
  19. sys.path.insert(1, PYTHON_LIBS_NUKE)
  20. except:
  21. "init.py: cannot find project libs path specified"
  22. # Paths
  23. nuke_path = os.getenv('NUKE_PATH')
  24. plugin_path = os.path.join(nuke_path, 'plugins')
  25. icon_path = os.path.join(nuke_path, 'icons')
  26. # Plugins
  27. nuke.pluginAppendPath(plugin_path, icon_path)
  28. def filenameFix(s):
  29. s = s.replace("/Volumes/O/", "//calculon/o/", 1)
  30. s = s.replace("/Volumes/P/", "//hades/p/", 1)
  31. s = s.replace("O:/", "//calculon/o/", 1)
  32. s = s.replace("P:/", "//hades/p/", 1)
  33. s = s.replace("o:/", "//calculon/o/", 1)
  34. s = s.replace("p:/", "//hades/p/", 1)
  35. return s
  36. # Needs to be loaded last?
  37. import kellerPluginCore
  38. kellerPluginCore.start( os.path.join( nuke_path ,"pythonplugins") )
  39. import cryptomatte_utilities
  40. cryptomatte_utilities.setup_cryptomatte()