How to Script Proportionally Fit Selected Group to Object with Attribute?
Hello, I'm trying to figure out how to script fitting a selected group of objects to an empty bounding box with the preset attribute "artbox". I don't know where to start... I usually start with someone else's script and then edit it to fit my needs, but I haven't found any similar script yet. But this is what I want the script to do in screenshots:
Here's the "artbox"

Here's an example art group that will be selected:

I want to automatically proportionally fit & center this selected art to the "artbox" like so:

Also, how do you do an "align center left" and "align center top" via a script? Because I would also like to make a similar script that will do the same thing as above but instead of aligning center it will align center top and one that will align center left to the bounds of the original wheelhouse monument run, which I will assign attribute "thumbnail" to.
Thank you so much!!