function showMyLayers() {
var Mylayers = [
["ISO"],
["ODO"],
["Black Round Mask"],
["red glow on gauges"],
["Compass"],
["4 Gauges"],
["Upper Stainless Steel"],
["Background"]
];
for (x in Mylayers) {
var activelayer = app.activeDocument.layers[x];
activelayer.visible = true;
activelayer = null;
}
} showMyLayers();
它出错了:[“4 Gauges”],
假设数字弄乱了数组。任何想法为什么?这是extendscript,它是javascript,但如果你想知道的话,它适用于photoshop。但它大部分基于 JS,所以它应该表现得像它。