Create Multiple Image files of other file names in folder

Hi,

I will try to explain as the best I can as it can be confusing:
Let's say I have the below images in a folder (and other images of course):
JustAnImage_01_Basecolor.png
JustAnImage_01_Metallic.png
JustAnImage_01_Normal.png
JustAnImage_01_Roughness.png

Now I need an AO map/texture/image for these images above called 'JustAnImage_01_AO.png' (it's just a white texture nothing more...an 'AO' map/texture/image)

Now I can copy/paste the AO map/image/texture for below and rename it like: JustAnImage_02_AO.png

JustAnImage_02_Basecolor.png
JustAnImage_02_Metallic.png
JustAnImage_02_Normal.png
JustAnImage_02_Roughness.png

But with a lot of textures in a folder copy/paste and renaming it is very time-consuming,
is there a way to copy the AO image multiple times and auto-read the other file names of
the images in that folder and create the desired AO images?

How is the new AO file created/where does it come from?

What's not clear is if you want to create the *_AO files or if they exists with random names and you want to rename them according to other names that are already existing (e.g. JustAnImage_<nn>_*).

If it's just renaming, it can be done with scripts, rename scripts or even "by hand" with batch renaming (probably using the Clipboard function at the bottom of the rename file dialog which allows to copy to clipboard all selected filenames on a first call to this dialog, and then after selecting the files you want to rename, to apply this clipboard names to the new selection).

If you want to create them with the appropriate name, the method will depend on how you need to create these files, whether this can be done from command line or not, which are the parameters, etc .... and will then either be a simple button or a slightly more complex script.

1 Like

From inside the folder where all the images are, see the attachment:

This > according to other names that already exist (e.g. JustAnImage_<nn>_*).
(see attachment above the other reply)

So it's not an easy thing to accomplish, as I thought, I also googled for other ways, CMD is beyond me but I am willing to learn and then maybe can make a .bat file (that's all I know tho)

And with that 'batch' renaming, do I still have to copy/paste each other file name?! or is there a way to select all the files and get the file names to a clipboard?!

image


Could you post a list of files you have and a second list of files you want Opus to create? That makes it easier to develop and test a solution.

Thank you! That's one thing solved, I am googling a lot, I have a tool called Rename Master also which I use daily, it's just weird we can't just rename multiple files from the clipboard (in this case with 'Copy Files Name') to other selected files, then it will be just a matter to Copy/Paste a few instances of the 'AO' images, select them and rename then, problem solved, really weird all :confused:

Yes, that's weird.

Very weird indeed.

Maybe one day Google, Rename Master, and ChatGPT join forces and find a way.

Touche...guess I made it complexer than it had to be, I was thinking too much out of the box,
with renaming automatically from other file names in that folder, this is a time saver also yes, ty