Read from file and add corresponding layer.
Recently I created a post where I was asking for some help.
The post was about adding layers to previously created comps (Post link HERE)
That problem was solved.
Now what I want to do is how to import a corresponding layer from reading a line in a text file. I will provide a code with which I tried to pull it off, but somehow the "Switch" statement is broken. Can someone tell me where I'm wrong, and what to do to make it work?
Any help will be much appreciated.
Thanks in advance.
Solved it. This the final code: