|
@@ -160,7 +160,7 @@ class denoicePanel(nukescripts.PythonPanel):
|
160
|
160
|
# filepatn in
|
161
|
161
|
self.inputpath = nuke.File_Knob("input", "Input")
|
162
|
162
|
self.addKnob(self.inputpath)
|
163
|
|
- self.inputpath.setTooltip('Needs to be in #### syntax. Not in %04d')
|
|
163
|
+ self.inputpath.setTooltip('Needs to be in #### syntax. Not in %04d or 1001 (single frame syntax')
|
164
|
164
|
self.inputpath.setValue(nuke.selectedNode().knobs()['file'].value().replace('%04d','####'))
|
165
|
165
|
|
166
|
166
|
# filepath out
|
|
@@ -284,14 +284,19 @@ class denoicePanel(nukescripts.PythonPanel):
|
284
|
284
|
self.musterPool.setVisible(True)
|
285
|
285
|
self.musterFolder.setVisible(True)
|
286
|
286
|
|
287
|
|
-
|
288
|
287
|
if knob.name() == "OK":
|
289
|
|
- if self.renderChoice.value() == "local_machine":
|
290
|
|
- print('Denoising locally......')
|
291
|
|
- self.executeNoiceLocally()
|
292
|
|
- if self.renderChoice.value() == "muster":
|
293
|
|
- print('Denoising on Muster......')
|
294
|
|
- self.sendToMuster()
|
|
288
|
+ # todo: fix with regexp
|
|
289
|
+ if self.inputpath.value() == self.outputpath.value():
|
|
290
|
+ print("Please use a output file different from the input file! Exiting.")
|
|
291
|
+ nuke.message("Please use a output file different from the input file! Exiting.")
|
|
292
|
+ else:
|
|
293
|
+ # go
|
|
294
|
+ if self.renderChoice.value() == "local_machine":
|
|
295
|
+ print('Denoising locally......')
|
|
296
|
+ self.executeNoiceLocally()
|
|
297
|
+ if self.renderChoice.value() == "muster":
|
|
298
|
+ print('Denoising on Muster......')
|
|
299
|
+ self.sendToMuster()
|
295
|
300
|
|
296
|
301
|
|
297
|
302
|
def executeNoiceLocally(self):
|