The double loop visits each elevement in the card list and in the
project list. However, you want to visit one project for every card. You
can do this by zipping together the two lists and running over that
result, e.g.:
for (card, project) in zip(cards, p3ds):
card.setInput(0, project)
See also: http://docs.python.org/library/functions.html#zip
HTH
--
Wouter Klouwen, Software Engineer
The Foundry, 6th Floor, The Communications Building,
48 Leicester Square, London, WC2H 7LT, UK
T: +442079686828 - F: +442074341550 - thefoundry.co.uk
The Foundry Visionmongers Ltd - Reg.d in England and Wales No: 4642027
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python