How to array objects on surface/ move multiple objects at once to different positions

Sorry I don’t know how to explain this better, but i am trying to achieve as showed in the picture

Almost like projecting multiple objects onto a surface while keeping their original orientation

Thank you very much!!!

Zeyu

You could try the scripts by @pascal and @Helvetosaur in this thread:

Thanks Wim! you saved my life @wim