Quantcast
Channel: Adobe Community : Unanswered Discussions - Photoshop
Viewing all articles
Browse latest Browse all 74445

Layer getByName

$
0
0

Hiya

 

app.activeDocument.activeLayer = app.activeDocument.artLayers.getByName("Layer 1");

 

I found out that the getByName layer method will grab the topmost layer if there are multiple layers named the same. Since you can have layers named the same (unlike path names) would the best practice for this to check for unique names before doing such a call?

 

Cheers


Viewing all articles
Browse latest Browse all 74445

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>