State:Closed|icon_bug|icon_nuke|database:public|Resolution:Fixed|TargetRelease:16.0v7|BugID:607424|
filenameFilter callback does not execute in most situationsprint(f"Output from: {nuke.NUKE_VERSION_STRING}") nuke.addFilenameFilter(print) read = nuke.createNode("Read") read["file"].setValue("/some/path/") geo_import = nuke.createNode("GeoImport") geo_import["file"].setValue("/another/path/") write = nuke.createNode("Write") write["file"].setValue("/my/last/path/")
3) Observe how the filenameFilter does not execute/print any information: filenameFilter callback should always execute.filenameFilter callback has been added to Nuke, the provided function will not trigger in most scenarios. The same behavior occurs if the steps are executed manually in the UI, or if Nuke is launched in Terminal mode.filenameFilter will be executed as expected:
print(f"Output from: {nuke.NUKE_VERSION_STRING}") nuke.addFilenameFilter(print) gsv_knob = nuke.root()['gsv'] gsv_knob.setGsvValue("__default__.render_location", "/some/gsv/path") read = nuke.createNode("Read") read["file"].setValue("test.####.exr") geo_import = nuke.createNode("GeoImport") geo_import["file"].setValue("/folder/some_[frame].usd") write = nuke.createNode("Write") write["file"].setValue("%render_location")
We're sorry to hear that
Please tell us why