I’m trying to write a simple automation script that, for each object inside selection, would copy it’s coordinates to variable, delete object, and add another object (like a curve or metasphere) using the coords from variable.
Being a complete noob to both Python and bpy libs doesn’t help, even though I know it should be a rather simple task.
For starters, I have a problem with ‘cycling’ through selected objects, so i don’t know how to tell Blender to choose a single (active?) object from selection, on which I can then perform an operation (like add it’s coords to the end of (x1,y1,z1…xn,yn,zn) type list and delete object when done), and then have it choose another.
Or is there a better way to do this?
Any help appreciated, but no ready code please, I’m here to learn!