you want to loop in the values
enumeration =
nuke.Enumeration_Knob("hello","",["test1","test2","test3"]) for i in
enumaration.values(): print i
--
Hugo Léveillé
Head of 2D, MELS
[email protected]
On Sun, Feb 21, 2016, at 20:38, Tejas Kantharia wrote:
> Hello i have been trying to loop through a pulldown menu but for some reasone
> i have been getting an error "Traceback (most recent call last):
> File "<string>", line 4, in <module>
> TypeError: 'Enumeration_Knob' object is not iterable"
>
>
> Here is the code i was trying to use
>
> x=nuke.selectedNodes()
> for i in x:
> if i.Class()== "NoOp"
> for a in i.knob('random'):
> y=nuke.createNode("Blur", inpanel = False)
> print "NoOP selected"
> else:
>
> print "error"
>
> Thank you.
>
> --
>
> Best Regards,
> Tejas Kantharia
> Vishwakarma Creative i College
> Department of B.sc Multimedia & Animation
> _________________________________________________
> 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