Quantcast
Channel: Adobe Community : Discussion List - After Effects Scripting
Viewing all articles
Browse latest Browse all 2143

Why my Relative Path only work at first load?

$
0
0

Hello Ae Scripting Friends.

 

I'm trying to get all my UI images from a folder inside ScriptUi Folder called "myImagesFolder"
My Scrip is already running inside the ScriptUi Folder.

 

I'm trying this:

var myButton = mainGroup.add("IconButton", undefined, "myImagesFolder/myImageName.png", "AlignLeft");

 

When my UI is loaded for the first time, the script find all paths and build it correctly.

 

But some iconbuttons, need to change the used image.

 

When the iconButton.onClick is activated.

I get a message saying that Path or image does not exist.

 

If the path is correctly located on the first loading, why does not it find the path anymore in the onClick function?

Could someone please help me?

 

Thanks

 

Rubens Nobre


Viewing all articles
Browse latest Browse all 2143

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>