Is there a way to automate the replacement of a Smart Image with a different graphic?
For example, if I have a master image of a mug, and a large number of flat rectangular images/designs I'd like on the mug, after some processing. I've set up a smart image using one of the designs and I've tweaked it with some filters to make it less rectangular (adjusting the perspective, bending the top and bottom to match the curve of the mug, etc.).
Now I need to figure out how to use Variables (if possible) to replace the image in the Smart Object so the same transformations/filters will be run on each image, which will then be placed on the mug and saved.
I see this tutorial which explains the basics of Variable data and shows how to use images as data -- but it's not clear to me how to use this to update the Smart Object so that all the transformations get applied to the images.
If Variables won't work with Smart Objects, I'm also open to using a script. (I'd love a snippet on how to update a smart object via script if anyone has one, as I've never used scripts with Photoshop before).