ID 219609 - 'No valid project setting' errors on export/create comp when having blank Default Color Transforms preferences in uistate.ini

Follow

Problem summary
Using NukeStudio or Hiero with a custom configuration file set via OCIO environment variable, then unsetting the OCIO and launching Nuke will load the Color Management Default Color Transform values blank. This then causes errors when exporting or creating comps due to missing default project settings, per TP 219603.

Steps to reproduce
1) in a Terminal execute
export OCIO=/usr/local/Nuke10.0v1/plugins/OCIOConfigs/configs/aces_1.0.1/config.ocio
2) delete your .nuke folder and launch Nuke from that terminal as /usr/local/Nuke10.0v2/Nuke10.0 --studio
3) ignore the Recent projects and select the Untitled 1, then select Project->Edit Settings->Color Management. You should see:
 
  • Color Management set to OCIO and locked to any edits
  • OpenColorIO Config set to nuke-default and locked to edits
  • Default Color Transforms blank (8 Bit Files, etc) only Working Space is set
 
 
4) go to Edit->Preferences, choose Color Management and set 8bit files (or all of the missing Default Color Transforms) to a value, then hit OK so they get saved to the uistate.ini from your clean .nuke folder.
5) close NukeStudio and go to your .nuke and open uistate.ini. It prints under [General]

ocioConfigFile=
ocioConfigCustom=false
workingSpace=ACES - ACEScg
viewerLut=
thumbnailLut=
eightBitLut=ACES - ACEScc
sixteenBitLut=
logLut=
floatLut=
 
6) in the terminal unset OCIO via:
unset OCIO
7) launch NukeStudio again and go to Project->Edit Settings->Color Management. you will get:
 
  • Color Management still set to OCIO (though the env var is not actually set) but not locked to any edits
  • OpenColorIO Config set to nuke-default and not locked to edits
  • Default Color Transforms all blank (8 Bit Files, etc) only Working Space is set
 
8) import a sequence/video, drag it onto the timeline to create a sequence and try to export it as a sequence. You will get:

 

Task 'EDLExportTask' reported errors:
No valid project setting for 8Bit LUT

 
9) For the same sequence try and go Effects->Create comp special, you get:
 
hiero.exporters.FnNukeShotExporter.NukeShotExporter
No valid project setting for 8Bit LUT
hiero.exporters.FnExternalRender.NukeRenderTask
No valid project setting for 8Bit LUT
hiero.exporters.FnNukeAnnotationsExporter.NukeAnnotationsExporter
No valid project setting for 8Bit LUT
hiero.exporters.FnExternalRender.NukeRenderTask
No valid project setting for 8Bit LUT

Reproduced by support
Reproduced on Linux CentOS 6.7, Windows 10 and Mac OSX 10.11 in 9.0v1 and 10.0v2.

    We're sorry to hear that

    Please tell us why