Quantcast
Channel: Adobe Community : Popular Discussions - Photoshop Scripting
Viewing all articles
Browse latest Browse all 12244

Weird layer-renaming issue.

$
0
0

On Win7, PS 19.0 I am encountering a strange issue with renaming layers.

 

It boils down to these steps:

  1. start a fresh PS
  2. Rename a layer manually works just fine.
  3. Run a layer-making script
  4. Now, renaming layers manually is nearly impossible: you double-click the desired layer to enable editable layer name text, but only have 1 second to type in the entire input before it automatically sets.

 

What's worse, after this the layer issue persists even in new documents, all the way until app restart.

 

This is my layer-making script:

 

#target photoshop

function test(){

  var doc = app.activeDocument;

  var arr = [

    "Name 1",

    "Name 2"

  ];

  var newLayer;

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

    newLayer = doc.artLayers.add();

    newLayer.name = arr[i];

  };

};

test();

 

Has anyone come across this?


Viewing all articles
Browse latest Browse all 12244

Trending Articles



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