-
How to load my presets from ScriptUiPanel with extended Script?
Hi all
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:
Result: /c/Program%20Files/Adobe/Adobe%20After%20Effects%20CC%202015.3/Support%20Files/null/Scripts/ScriptUI%20Panels/Pr/C-Sh/fxs/Sample_01the null in between wont allow the path work correctly.
Appreciate any suggestion.
Thanks
Sorry, there were no replies found.