Okay, so this might be a little complicated.
In Adobe Illustrator (currently 25.4.1) I have a project that I'm doing, where a pattern of objects is on one layer, and there's an image on a locked layer beneath it. What I've been doing by hand is selecting one of the objects, and using the eyedropper tool to select a color from the image, more or less where center of the object would be. This colors the object from whatever pixel I clicked on, and I lather, rinse, and repeat.
I'm wondering if there might be a way to script this, so that I can select all the objects on the pattern layer, and have them all select the color from the pixel in the image that would be closest to the center of the object. Even if the script did the process object by object, that'd be fine because I don't mind telling the script to get to work and going to do something else until it's finished.
I tried recording the actions, but using the eyedropper to pick a color doesn't record an action, and I wasn't sure how to script finding the center of the object anyway.
Any help would be greatly appreciated. This is for a project where I need to do a couple of these designs every day, and it will probably become an annual thing.
Thank you all.