How to loop duplicate one object and translate the copy origin on top of the origin of all selected objects (origin position in the belonging objects unchanged) one by one with a python script?
Edit 10-19-23 [mm-dd-yy] 15:13 CEST)):
How to loop duplicate one source object (source/active) and translate the copy on top of all other selected objects; with a python script?
Edit (10-19-23 16:16 CEST):
This former objects (redwood trees) scattered via a particle system. Since been converted into mesh. Each tree has a belonging simple/low-poly collision mesh (typical need for game assets) I was hoping the collision mesh would be applied too, the way I setup the particle system. But unfortunately something went wrong in the process!
I start manually:
- Cursor to Selected mesh [Shift]+[S]
- Select collision-mesh (it's always the same) by simply clicking it in the bottom outliner panel (no [Ctrl] selection, so the current tree mesh remains active)
- Duplicate [shift]+[D]
- Selection to Cursor (Keep Offset) [Shift]+[S] => [7]
- Select a new tree mesh by clicking it in the upper outliner panel
- Repete
I already did this as ridiculously far as 348 objects/trees (See image bottom outliner panel to become a true believer). When I realised I'd newer reach the end of it without automation/Python script.