Clear / Flush Palette cache

Clear / Flush Palette cache

gvisca44
Advocate Advocate
275 Views
2 Replies
Message 1 of 3

Clear / Flush Palette cache

gvisca44
Advocate
Advocate

I have an add-in that uses a custom palette (following the 360 Utils examples).

 

As I was writing the add-in, each time I wanted to change either the .html file or the .js file called by the html file, I would have to resave the files under a new name to ensure I wasnt seeing a cached version - and then change the python to use the new html file.

 

I'm reasonably sure there is a cache somewhere for the built-in html browser ... Is there a way to clear the cache ?

 

BTW - restarting Fusion doesnt clear it.

 

Glenn.

0 Likes
276 Views
2 Replies
Replies (2)
Message 2 of 3

j4n.vokurka
Advocate
Advocate

Hello,

I have a bit of experience with palette and I think the problem is that the .html and .js files together with any other extra files located in your addin folder are copied into the working directory of Fusion once you run the addin.

These files stay in the working directory even after you've turned off your addin. The second time you run it the files from that particular addin with that particular name already exist in the directory and so are not copied even though you've changed them. That's why you need to rename them to force their copy into the working directory. 

From Windows environment you can easily access the working directory by holding Shift and right-clicking the Fusion icon. Press "Open file location" and that should take you to the working directory which will look something like this:

j4nvokurka_0-1708528344743.png

In my case it's located under:

C:\Users\MeAsUser\AppData\Local\Autodesk\webdeploy\production\b0c303e70bd97cfdc195adab65922cfeffcb363a


Here you should find your files. You can erase these files while closing your addin using Windows API (if you use Windows OS) or do that every time it is needed manually. 

Hope this was helpful

Message 3 of 3

gvisca44
Advocate
Advocate
No luck there. All I have in that directory are some icon files and the launcher.
0 Likes