Since Pulldown menus seems to be the subject of the week I thought I might jump 
in…


I can easily get a Python expression to derive a value of the selected 
(e.g.)“Option1", “Option2", etc. from a pulldown menu within nuke using a 
python expression.

[python {nuke.toNode(“MyNode").knob(‘PulldownMenu').value()}]




However, when trying to read the same Pulldown in a callback through Python I 
get the error below.  

        n =MyNode
        PulldownValue = n[‘PulldownMenu'].value() 



TypeError: list indices must be integers, not str



I understand that the knob contains a list (to create the options) but is there 
a way to get the resolved value as from an expression within Nuke?


Thanks!

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

Reply via email to