I've made few presets and copied them in "ScriptUI Panels\Pr\C-Sh\fxs\Sample_01".
Now I want to load and apply them to the layer I made via extended Script.
I've tried to get the path by $.getenv(); but it seems I can't find the right value for the getenv(); and it keeps turning null as result.
How can I access the "ScriptUI Panels" folder in away that if I run my script on another pc it returns the same path.
here is the actual code I've typed :
var Preset = File($.getenv()+"\\Scripts\\ScriptUI Panels\\Pr\\C-Sh\\fxs\\Sample_0"+i);
and here is the result I'm getting:
the null in between wont allow the path work correctly.
Appreciate any suggestion.