Trivial problem: Loop produces to much Boxes

Hey Guys,

the Script produces boxes on my previously created rectangles. But i only want 1 box per rectangle. This scripts produces on the first rectangle 1 box on the second 2 on the third 3 etc.

Any guesses how i can fix this?

PS: Script is showed on the picture.

Much appreciated, sry for the bad english.

Dear Philipp

What are you inputting to the script?

It looks like both a list of Origin (origin) points and a number of boxes (n_u)? I can’t see anything in you script iterates through the origin points.