• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Convert layers names to lowercase

New Here ,
May 03, 2017 May 03, 2017

Copy link to clipboard

Copied

Is there any script to convert "layers names" (not text layer name)  to lowercase.

eg: Layer 1 >>  layer 1

I have found a similar script from this link

Is it possible to convert layerset names to uppercase?

However, this script only works for groups but not layers.

I'm using photoshop CS6.

plz help

TOPICS
Actions and scripting

Views

1.2K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Engaged , May 03, 2017 May 03, 2017

Hi kkm,

Hope this will helps..

var x = app.activeDocument.layers; 

for (i=0; i<x.length; i++) { 

    if(x.typename=="ArtLayer" && x.name!="Background") x.name = x.name.toLowerCase();

- yajiv

Votes

Translate

Translate
Adobe
Engaged ,
May 03, 2017 May 03, 2017

Copy link to clipboard

Copied

Hi kkm,

Hope this will helps..

var x = app.activeDocument.layers; 

for (i=0; i<x.length; i++) { 

    if(x.typename=="ArtLayer" && x.name!="Background") x.name = x.name.toLowerCase();

- yajiv

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 03, 2017 May 03, 2017

Copy link to clipboard

Copied

it works!

super thx

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
May 03, 2017 May 03, 2017

Copy link to clipboard

Copied

LATEST

Hi kkm,

Please mark as correct answer and below code to line 3

if(x.typename=="ArtLayer" && x.name!="Background" && x.kind!=LayerKind.TEXT) x.name = x.name.toLowerCase();

- yajiv

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines