The Script Editor prints True, but a dialog appears saying "LUT does not exist. Please press 'Analyze Reference Frames' to compute the LUT".
The same thing happens if you run the code in terminal mode.
Expected behaviour
For the LUT to be exported
Actual behaviour
The LUT fails to be written, saying the LUT does not exist, even though mg['lutExists'].value() returns True:
- It's also noted that an error can occur in terminal mode with the message: "DDImage ERROR: Filename is empty", where performing the workaround below fixes the issue and the LUT is written correctly.
Workaround
If you use forceValidate() on the node before executing the writelut knob, then it exports correctly, so in the case of the example code: