问题描述
#targetengine main
#include "test.jsx"
var w = new Window("palette");
w.show();
...基本上,#include 似乎停止了面板窗口的启动,我做错了什么/如何解决这个问题?
解决方法
试试这个解决办法:
#targetengine main
var ip = new File($.fileName);
var scriptPath = ip.path;
function incScript(sn) {
eval('#includepath ' + scriptPath + '\n#include ' + sn);
}
incScript('test.jsx');
var w = new Window("palette");
w.show();