憋了半天终于写出一个能穿透组的更名脚本;但是如何才能不修改图层现实情况呢- #target photoshop
- app.bringToFront();
- if(documents.length == 0){
- alert("没有可处理的文档");
- }
- else{
- var visibility = false;
- var docRef = activeDocument;
- changeLayerName(docRef);
- }
-
- function changeLayerName(layer){
- var layers = layer.layers;
-
- if(layers){
-
- for(var i =0; i<layers.length;i++){
- layers[i].name="ddd"+[i];
- changeLayerName(layers[i]);
- }
- }
- }
复制代码
|