Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Image Path (Scripting)

  • Image Path (Scripting)

    Posted by Misha Chonka on January 4, 2016 at 2:15 pm

    Hi, how to write short path to the image for IconButton if my image is located in same dirrectoy as script file?
    I mean write path like “\image.png” instead “C:\Program Files\After Effects\Sripts\image.png”

    Thanks!

    Misha Chonka replied 10 years, 8 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    January 4, 2016 at 6:45 pm

    I’d do it like this:

    var imageName = “image.png”;
    var imagePath = File($.fileName).path + “/” + escape(imageName);

    Dan

  • Misha Chonka

    January 7, 2016 at 4:45 pm

    Thanks! It’s Work!)

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