Açıklama Yok
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

projectDefaults.py 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #TODO: OCIO config from KEnv
  2. #TODO: Formats fron KEnv
  3. class ProjectDefaults(KellerNukePlugin):
  4. def configurePlugin(self):
  5. ############################################################################################################################################
  6. # DEFAULTS
  7. #
  8. # JOB SPECIFIC DEFAULTS
  9. #
  10. ############################################################################################################################################
  11. # Write
  12. nuke.knobDefault("Write.channels", "rgba")
  13. nuke.knobDefault("Write.dpx.channels", "rgb")
  14. nuke.knobDefault("Write.create_directories", "1")
  15. nuke.knobDefault("Write.exr.noprefix", "1")
  16. nuke.knobDefault("Write.exr.metadata", "all metadata")
  17. # Exposure
  18. nuke.knobDefault("EXPTool.mode", "0")
  19. # add formats
  20. nuke.addFormat('3840 2160 0 0 3840 2160 1 HOT_WORK')
  21. nuke.addFormat('3840 2160 0 0 3840 2160 1 HOT_DELIVERY')
  22. nuke.addFormat('2560 1440 0 0 2560 1440 1 HOT_3D_PREVIEW')
  23. nuke.addFormat('1920 1080 0 0 1920 1080 1 HOT_3D_PREVIEW_LOW')
  24. # add fileout Defaults
  25. nuke.knobDefault('Write.channels', 'rgba')
  26. nuke.knobDefault('Root.colorManagement', 'OCIO')
  27. nuke.knobDefault('Root.OCIO_config', 'custom')
  28. nuke.knobDefault('Root.customOCIOConfigPath', '//hades/p/_projekte/HOTZ/000_dev/ocio/aces_1.2/config.ocio')
  29. # set format
  30. nuke.knobDefault('Root.format', 'HOT_WORK')
  31. # set viewer
  32. # viewer is set via config.ocio: active_views: [P3D65 Rec.709 Limited, sRGB, DCDM, DCDM P3D60 Limited..]
  33. def unconfigurePlugin(self):
  34. pass