Hey irwit try this:

cp = nuke.Panel("get value",200) 
test = cp.addEnumerationPulldown("input","0 1 2") 
result = cp.show() 
drop = cp.value("input") 
print drop 


I believe what your problem is that you created a "cp.addButton("ok") " button. 
Reason is that the first button you created was giving you a result of 0.. 
which would seem to cause the Nuke Panel to think you quitted it rather then 
hit ok. If you made 2 buttons.. having the second button be the OK button I 
think this would work

Anyone else have a better explanation... I am not a good teacher haha[/code]



_______________________________________________
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