Home › Forums › Nazca › Questions and Answers › define pins in a loop › Reply To: define pins in a loop
21 February 2019 at 11:44
#5455
Keymaster
Dear Chenhui,
Thank you, good catch, I edited it in the original post.
Your example raises pins for multiple instances. If the instances are added to a list you can iterate over them.
padN = []
with ...
...
padN.append(bump(pad=pad).put(293.14, 114.02, 0))
padN.append(bump(pad=pad).put(368.14, 113.31, 0))
for i, pad in enumerate(padN):
pad.raise_pins(['out0'], ['out'+str(i)])