02-17-2023 02:24 AM
Hi, I want to read three image files with the same way by using auto indexing, or some other smart way.
Right now, I'm using the same code three times. I've tried using auto indexing but it didn't work for me.
I wan't to read the files: image 1, image 2, image 3 in the same way.
The only thing different are the files. Everything else is the same.
Thank you.
Yoo
Solved! Go to Solution.
02-17-2023 09:47 AM - edited 02-17-2023 09:58 AM
You can autoindex on an array of paths and array of names using a FOR loop. Since the string corresponds to the filename in your case, you don't even need an array of names, just get the filename without extension.
(If the list of files can easily be obtained from a pattern, e.g. "image *.png", you could use "list folder" to get the array of paths.)