FORUMS: list search recent posts

Image Path (Scripting)

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Misha Chonka
Image Path (Scripting)
on Jan 4, 2016 at 2:15:16 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!


Return to posts index

Dan Ebberts
Re: Image Path (Scripting)
on Jan 4, 2016 at 6:45:40 pm

I'd do it like this:

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


Dan



Return to posts index

Misha Chonka
Re: Image Path (Scripting)
on Jan 7, 2016 at 4:45:30 pm

Thanks! It's Work!)


Return to posts index

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