Try using nuke.executeInMainThread() to make your nuke.execute call.

-Nathan



From: Howard Jones 
Sent: Thursday, September 01, 2011 5:23 AM
To: Nuke Python discussion 
Subject: Re: [Nuke-python] Executing write nodes inside group

maybe the 'execute' activates knobChanged?


Howard



------------------------------------------------------------------------------
  From: rd-nuke-quintaindustries.com <[email protected]>
  To: Nuke Python discussion <[email protected]>
  Sent: Thursday, 1 September 2011, 12:59
  Subject: Re: [Nuke-python] Executing write nodes inside group

  rd-nuke-quintaindustries.com a écrit :
  > Hi,
  > 
  > Do you know a way to execute from a knobChanged callback a node contained 
in a group ?
  > I tried
  > group.node("TheWriteIWantToRender")['Render'].execute()
  > nuke.execute((nuke.toNode("groupName.TheWriteIWantToRender"),), False)
  > nuke.toNode("DuTankStereoWrite.WriteLocal")['Render'].execute()
  > 
  > And I always have a
  > 
  > RuntimeError: I'm already executing something else
  > 
  > 
  > If I type these commands in the python editor it's working has expected. If 
I execute these commands in a knobChanged callback I have the RuntimeError.
  > 
  > 
  > Any ideas why and how preventing that ?
  Ok, I have an answer for the how. If I execute my nodes outside the 
knobChanged callback it' s working.
  Anyone has the why ?
  _______________________________________________
  Nuke-python mailing list
  [email protected], http://forums.thefoundry.co.uk/
  http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python





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

Reply via email to