Script to select a file based on layer text
- January 29, 2022
- 3 replies
- 1183 views
Hello, I hope someone can help me in a project,
to resume what I am trying to achieve is create an script which can place an image from a folder
with several images and place one of them depending on name and based in a text layer,
(auto select image based in name) example:
File 1:
Layer text " Cat"
Import from folder any image with the "cat" in the name (big cat.png)
File 2:
Layer text "Dogs"
Import from same folder any image with the "dog" word in the name ( red dog.jpg)
File 3:
Layer text "All Mouses"
Import from same folder any image with the "Mouse" word (gray mouse.jpg)
I used several scripts to cut the words, extract text etc so not sure if is possible to create something like that, I apreciate any welp or light you can bring to this idea.
I hope is not an impossible task to do, and please appologize I am a begginer in cooding, so please appologize if my question is stupid. THank you for your help.
