Community
Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Sample Palette does not render

2 REPLIES 2
Reply
Message 1 of 3
kungfumachinist
395 Views, 2 Replies

Sample Palette does not render

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.

Tags (1)
2 REPLIES 2
Message 2 of 3

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

Message 3 of 3
marshaltu
in reply to: kungfumachinist

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 360 Developer
Autodesk, Inc.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report