Simon,

Since I’ve never tried to do coding for a separate thread, I thought I’d give 
it a try:

http://pastebin.com/niEV5FPF

My version has some of the very same elements as Mitja’s does. And, my code 
works -- *most* of the time...

...However, sometimes it gets a...
"TypeError: expected callable object, NoneType found”
...and sometimes it gets a…
“TypeError: ‘NoneType’ object is unscriptable”
...and sometimes it gets a…
“RunTimeError: Cancelled”

So, not too reliable!!   (8^P

If my co-worker Python-guru-friend was here today, I’m sure he could help me 
debug the problem. Perhaps someone else here could help…?

So close, yet, so far...

Rich


Rich Bobo
Senior VFX Compositor
Armstrong White
Email:  rich.b...@armstrong-white.com
http://armstrong-white.com/

Email:  richb...@mac.com
Mobile:  (248) 840-2665
Web:  http://richbobo.com/

"What you can do, or dream you can do, begin it; boldness has genius, power and 
magic in it."
- Johann von Goethe





On Apr 24, 2014, at 3:08 AM, Simon Björk <bjork.si...@gmail.com> wrote:

> Hi Mitja,
> 
> thanks for the reply. I tested you code, but unfortunately I still get the 
> "I'm already executing something else" error. Does it work for you?
> 
> Best regards,
> Simon
> 
> 
> 2014-04-24 8:19 GMT+02:00 Mtja Müller-Jend <filmk...@gmx.de>:
> Hi Simon,
> 
> try to use threading to execute the node: http://pastebin.com/06azNCzx
> 
> Cheerz,
> 
> Mitja
> 
> Am 4/23/2014 11:54 PM, schrieb Simon Björk:
>> I'm trying to execute a Write node from a Python panel, but I'm not having 
>> any luck. As I try to exectute the render I get a RuntimeError: I'm already 
>> executing something else.
>> 
>> One solution would be to use a Nuke panel instead, but I would really need a 
>> Python panel for this script. See short example script here: 
>> http://pastebin.com/NzStQNhk.
>> 
>> I would really appriciate some help on this.
>> 
>> Best regards,
>> Simon
>> 
>> 
>> _______________________________________________
>> Nuke-python mailing list
>> Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
> 
> 
> _______________________________________________
> Nuke-python mailing list
> Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
> 
> 
> _______________________________________________
> Nuke-python mailing list
> Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to