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
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to