Answered
Photoshop CC2021 layer switch script
Is there a simple approach to switch between Layer 1 and Layer 2 via a script?
What should take place first, looping through the layer stack to make sure Layer 1 exist?
or making Layer 1 active?


See the code I posted on the following thread. I used the getByName method to get the layer we want to select. If the layer does not exist, the method call raises an expectation; hence the code is enclosed in a try-catch block.
How to Select Specific Layer Name
-Manan
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.