【发布时间】:2012-07-15 22:51:45
【问题描述】:
我正在尝试重写 Indesign CS5.5 中的 CornerEffects.jsx 脚本,以使其在学校更加用户友好,因此人们可以准确地知道第一点在哪里以及最后一点在哪里等等。脚本必须工作在 CS3 中也是如此。 仅当矩形是选定对象时才需要更改选项,否则回退到默认值。我尝试了以下 sn-p ,但无论如何它都会退回到默认值。谢谢各位。
function myDisplayDialog(myObjectList){
if (app.selection.constructor.name == "Rectangle"){
var myStringList = ["all points","first point (top-left)", "last point(top-right)", "second point(bottom-left)", "third point(bottom-right)", "fourth point(top-right)", "first two", "second and third", "last two", "first and last", "odd points", "even points"]
}
else{
var myStringList = ["all points","first point", "last point", "second point", "third point", "fourth point", "first two", "second and third", "last two", "first and last", "odd points", "even points"]
}
【问题讨论】:
标签: javascript if-statement rounded-corners adobe-indesign