【发布时间】:2019-03-20 12:00:04
【问题描述】:
我正在尝试通过提示选择一些图像文件,然后将这些文件添加到活动文档中。到目前为止,这是我所拥有的:
#target photoshop
doc = app.activeDocument;
// choose image files
var files = File.openDialog(undefined,undefined,true);
// for each image, add to new layer and insert into doc
for (var file in files) {
var layer = doc.artLayers.add();
layer.image = file; // this doesn't work.
}
【问题讨论】: