Copy link to clipboard
Copied
Hi,
I want to ask you if is possible import one script to another and call functions from it??
Thank Domaneni
I would recommend using $.evalFile. You can also use //@include. evalFile has the advantage of being able to use cross platform paths. For example from Photomerge.jsx
var g_StackScriptFolderPath = app.path + "/"+ localize("$$$/ScriptingSupport/InstalledScripts=Presets/Scripts") + "/"
+ localize("$$$/private/Exposuremerge/StackScriptOnly=Stack Scripts Only/");
$.evalFile(g_StackScriptFolderPath + "LatteUI.jsx");
Copy link to clipboard
Copied
I would recommend using $.evalFile. You can also use //@include. evalFile has the advantage of being able to use cross platform paths. For example from Photomerge.jsx
var g_StackScriptFolderPath = app.path + "/"+ localize("$$$/ScriptingSupport/InstalledScripts=Presets/Scripts") + "/"
+ localize("$$$/private/Exposuremerge/StackScriptOnly=Stack Scripts Only/");
$.evalFile(g_StackScriptFolderPath + "LatteUI.jsx");
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more