FORUMS: list search recent posts

How to load my presets from ScriptUiPanel with extended Script?

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
vahab san
How to load my presets from ScriptUiPanel with extended Script?
on May 5, 2017 at 8:25:48 am

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_01

the null in between wont allow the path work correctly.
Appreciate any suggestion.
Thanks


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]