Can't get CustomSanityCheck.py to work with Nuke

Hi,

I copy/pasted the Custom Sanity Check code snippet found in the help documents for Nuke 6 and saved it to CustomSanityChecks.py in our deadlinerepository/submission/Nuke folder, but apparently it does not work. I’ve tried to set it to return False, but that has no effect, and it does not set initial values either. What am I doing wrong here? I would like to be able to set up some default values in the Comment and Department fields.

Deadline version 5.1.0.46144
Nuke version 6.3v4

I just tested our online sample code and it seemed to work as expected. Can you post the CustomSanityChecks.py script you’re currently testing with? We could test it here and try to figure out what the problem is.

Thanks!

  • Ryan

OK, thanks. The script is attached. Just rename from zip to py. The full path is \father\DeadlineRepository\submission\Nuke\CustomSanityChecks.py
CustomSanityChecks.zip (308 Bytes)

Thanks! It’s just an indentation issue. Attached is the fixed script. It’s an actual zip, so just unzip to use.

Cheers,

Also, we’ll be updating the Nuke submitter in Deadline 6 to print out the error message to Nuke’s script editor if it can’t load the sanity checker script.