>
> Btw, adding a proper "runtime error" exception just gave more verbosity on
> the missing knobs (due to missing gizmos)...
>
That's weird. Hard to reproduce without having a script that throws exactly
the same errors, but I just tried this with a synthetic script and a bunch
of missing gizmos, and I seem to be able to catch the RuntimeError just
fine.
##### process.py ##########
import nuke
import os
def main():
nk = os.path.abspath(sys.argv[1])
try:
nuke.scriptOpen(nk)
except RuntimeError:
print "A RuntimeError occurred: Ignoring..."
pass
# Moving on...
print nuke.allNodes()
if __name__ == '__main__':
main()
######################
nuke -t process.py missing_gizmos.nk
I get a printout of nuke.allNodes() before the script exist
Are you not getting the same?
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python