Is the code that calls nodePaste running in a callback of some kind?

-Nathan



From: Justin Ball 
Sent: Sunday, March 27, 2011 3:31 PM
To: Nuke Python discussion 
Subject: Re: [Nuke-python] pulldown lists, db's and group nodes

If I get what you are saying is build the interface for the show info into the 
DB instead of making the node itself able to load all the shows, use the DB to 
load the "show" node.

well, that would cause a serious re-design.  And this whole system has been 
rolled out.

Does anyone really know what is going on behind the scenes to cause this issue? 
 What I was trying to do is everytime I pulled the node in via nuke.nodePaste() 
it would run the onCreate code to restat the db for the showlist, and then just 
assign the clear text show name to the pulldown.  The issue is that the show 
name is not in the DB, it is just that the list is not the same as when it was 
saved.  But the onCreate code should clear and re-set that correct?

I guess I am really not understand why this is broken (other than my apparent 
bum code)

Justin


On Sat, Mar 26, 2011 at 8:40 PM, Nathan Rusch <[email protected]> wrote:

  Why not just store the Group nodes in a DB table with non-recycled show 
indices and load everything from there?

  -Nathan

  -----Original Message----- From: Blamsammich
  Sent: Thursday, March 24, 2011 9:11 AM
  To: Nuke Python discussion
  Subject: [Nuke-python] pulldown lists, db's and group nodes

  I am having an issue that I am not sure where to begin in fixing.  I hope you 
all might be able to shed some light on the problem.

  I have created a group node that uses some onCreate code to populate a 
pulldown knob with the list of active show names.  I am using group node in the 
pipeline, so this nodes defines a color grade for a shot or show.  I then 
publish this node out to production using the nuke.nodeCopy() command.

  The issue I am having is that if we remove a show from the db due to 
completion etc, and I pull back in this group node via the pipeline scripts 
when it was saved out with a different count in the index of that pulldown 
knob.  It causes the node to not load properly or at all since the db index for 
that pulldown knob is different than what it was saved with.

  now when working with that pulldown knob on the python internals of the group 
node, I am never working with the index value of the pulldown but rather just 
populating it with a list of show names.  but nuke seems to have an issue with 
this and the index being different.  It seems to be something behind the scenes 
that I am not controlling effectively or at all.

  if anyone has any suggestions it would be greatly appreciated.

  Thanks!

  Justin


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




-- 
Justin Ball VFX
VFX Supervisor, Comp, Effects, Pipeline and more...
[email protected]
818.384.0923




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

Reply via email to