tell the user no file type in knobs and ask them to add one

This commit is contained in:
Kayla Man 2023-06-09 20:31:41 +08:00
parent feff57de37
commit 704620287c

View file

@ -92,8 +92,8 @@ class WriteNodeKnobSettingPanel(nukescripts.PythonPanel):
ext_knob_list = [knob for knob in knobs if knob["name"] == "file_type"]
if not ext_knob_list:
nuke.message("No file type found in the subset's knobs.\nDefault file_type value will be used..") # noqa
break
nuke.message("No file type found in the subset's knobs.\nPlease add one...") # noqa
return
else:
for knob in ext_knob_list:
ext = knob["value"]