Hey! I'm new to scripting, and I'm trying to find a solution to what should be such a simple problem. I'm trying to duplicate a layer with a script, but as of now, it seems there's no an easy way. Somebody suggested that I should create an action that duplicates a layer, and then call that action from my code. But I can't seem to get an action to duplicate a layer, it just doesn't register it. So, does anybody have an already working code for something like this, if not, can somebody point me in the right direction to code this myself?
... View more