Home Page › forums › Applications › Nuke › Nuke executeMultiple error
- This topic has 2 replies, 3 voices, and was last updated 6 years, 2 months ago by Anonymous.
-
AuthorPosts
-
July 12, 2014 at 6:16 pm #206206thomasjt017Participant
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!
August 7, 2014 at 4:30 pm #220221AnonymousInactiveSame 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 putif success == none:
and that will work.August 10, 2014 at 11:34 am #220220AnonymousInactiveThanks very much! Adding **kwargs works.
Edit:
if success == None:
works. Realised it must be capital N for None. -
AuthorPosts
- You must be logged in to reply to this topic.
