State:New|TargetRelease:No Target|icon_bug|icon_nuke|database:public|Resolution:Fixed|BugID:604481|
def drop_test(mime_type, text): path_to_file = "path/to/script.nk" #change to current file nuke.loadToolset(path_to_file) return False nukescripts.addDropDataCallback(drop_test)
2) Observe the error given.nuke.loadToolSet() or nuke.nodePaste() and the file gets loaded inside the current nUke script.RuntimeError The above exception was the direct cause of the following exception: Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Program Files/Nuke16.0v4/plugins\nukescripts\drop.py", line 14, in dropData if callback(mimeType, text) == True: ^^^^^^^^^^^^^^^^^^^^^^^^ File "<string>", line 3, in drop_test SystemError: <built-in function loadToolset> returned a result with an exception set
nuke.nodePaste() outside of the dropper function works as expected.We're sorry to hear that
Please tell us why