Sample Palette does not render

Sample Palette does not render

Anonymous
617 Views
2 Replies
Message 1 of 3

Sample Palette does not render

Anonymous
Not applicable

Hello, I am trying to get the sample palette example working. I get a similar error to that in this thread:

https://forums.autodesk.com/t5/fusion-360-api-and-scripts/palette-sample-not-working/m-p/6998051#M30...

 

In my case, the HTML does not render at all. If I put "http://www.google.com" as the file name it works (in that it renders). But I can't seem to find any combination of things that will get it to render the example html file. I can put in "monkey.html" and Fusion does not complain. That makes me think it is not finding my file. It's in the same location as the Python file. I've tried relative paths ("./palette.html"), absolute path, "file://..." etc.

 

Oh, wait, I got it. I'm on a Mac. The location of the file was /Users/daryl/Library/Application Support/Autodesk/Autodesk Fusion 360/API/AddIns/PaletteTest/palette.html. If I move the file to /Users/daryl/palette.html and reference it from Python with an absolute path, it works. Perhaps this is due to the spaces in the path? What is the recommendation here? How should I organize and deploy/install my Add-in?

 

Thanks.

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

Anonymous
Not applicable

Using an absolute path with the spaces replaced with %20 works. I'm guessing I can generate that in Python from the path to the current module wherever it is.

 

/Daryl

0 Likes
Message 3 of 3

marshaltu
Autodesk
Autodesk

Hello,

 

It was a bug in Palette API. We were aware of it and made a fix recently. It will be available in late September release.

 

Thanks,

Marshal



Marshal Tu
Fusion Developer
>
0 Likes