Center object / group / vector in a circle and then center in the artboard.
Hi community, Happy new year! Hope you're all doing good.
Can anyone help me with a script (or some threads where I can find information) to do the following.
Let's say I have selected an object / group / vector (let's call it "design"), width and heigth will be variable, sometimes it will be wider sometimes and the way around in other circumstanses. I would like to have an script that will resize and center that design in the middle of a circle / elipse of 18.8mm x 18.8mm , the design will not exceed that area, and after that, the circle should be deleted (because we will not need it anymore) and then center the new resized design in an artboard of 1 inch x 1 inch. Not sure what's teh easiest way if to create a new document or to just resize the actual artboard, i'll rather prefer to resize the actual artboard.
I will appreciat your help! Picture for reference. Please note that the "design" will increase it's size or reduce it's size in order to fit, and I am only showing how I think it will be, I did not show the artboard resized.
