Nuke executeMultiple error

Home Page forums Applications Nuke Nuke executeMultiple error

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #206206
    thomasjt017
    Participant

    I’ve been trying to overload nuke.executeMultiple following PYT101 class 8, however the following error comes up whenever I try to render anything at all:

    myExecuteMultiple() got an unexpected keyword argument ‘continueOnError’

    Traceback (most recent call last):
    File ““, line 1, in
    File “C:/Program Files/Nuke7.0v4/pluginsnukescriptsrenderdialog.py”, line 702, in showRenderDialog
    d.run()
    File “C:/Program Files/Nuke7.0v4/pluginsnukescriptsrenderdialog.py”, line 236, in run
    nuke.executeMultiple(self._nodeSelection, frame_ranges, views, continueOnError = self._continueOnError.value())
    TypeError: myExecuteMultiple() got an unexpected keyword argument ‘continueOnError”

    I’ve found out that if I hit “Render in Background” it renders, but does not save the nuke script into the render folder. I’m using Nuke 7 and was wondering if something has changed since the tutorial, and I’m unsure how to fix it.

    Cheers in advance!

    #220221
    Anonymous
    Inactive

    Same problem here, I found the solution after playing one day. Things have changed since older versions of nuke or maybe it’s because of a different OS.

    You need to add **kwargs next to *args because the continueOnError is a keyword parameter and *arg doesn’t support it.

    def myrender_panel(*args, **kwargs):

    and finally you can’t just put:
    if success:
    you have to put

    if success == none:
    and that will work.

    #220220
    Anonymous
    Inactive

    Thanks very much! Adding **kwargs works.

    Edit:
    if success == None:
    works. Realised it must be capital N for None.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Copy link
Powered by Social Snap