gpt4 book ai didi

javascript - 如何在 Photoshop 脚本中为值创建输入字段

转载 作者:搜寻专家 更新时间:2023-11-01 05:06:35 25 4
gpt4 key购买 nike

我正在使用 Photoshop 脚本,我已经将 Action 转换为脚本,效果很好。我已经用这样的变量定义了另存为文件名:

var path="~/desktop/Images/";
var start ="a";

保存路径设置如下:

desc1.putPath(cTID('In  '), new File(path + start + "001"));

下一次保存将是:

desc1.putPath(cTID('In  '), new File(path + start + "002"));

如何在每次使用路径和起始值输入运行脚本时弹出框?

最佳答案

好的,我发现了。想把它放在这里是为了帮助其他人。

  var Path= Folder.selectDialog("Select folder to save");
var Start =prompt("Layer Name","","Input Layer Name");

desc1.putPath(cTID('In '), new File(Path + "/" + Start + "001"));

关于javascript - 如何在 Photoshop 脚本中为值创建输入字段,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11280552/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com