Object coordinates via slider

Hello everyone,

i need some help as i don’t really have an approach to my problem.

I would like to carry out an optimization with Generative Design. For this purpose I have put down 2 sliders, which should be used to determine the coordinates of objects. Several objects are to be selected via “Select Model Elements”. Now I would like to create a kind of loop or something similar in which a position is assigned to the objects one after the other via the slider. This should work with any number of objects. At the end, a list of objects and the associated coordinates should be available.

Thank you in advance!