Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects How to load my presets from ScriptUiPanel with extended Script?

  • How to load my presets from ScriptUiPanel with extended Script?

    Posted by Vahab San on May 5, 2017 at 8:25 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

    Vahab San replied 9 years ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy