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: 

Surface Text Add-In

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
Anonymous
999 Views, 3 Replies

Surface Text Add-In

This question is related to the idea of embossing text uniformly on a curved surface without a mega-workaround (i.e. creating a bunch of tangent planes and extruding/cutting the text into the object). This exact funcitonality is available from an add-in (I originally found at http://forums.autodesk.com/t5/ideastation-request-a-feature-or/emboss-feature/idi-p/5786374) posted by Xiaodong Liang. 

 

After installing the add-in I got several errors that appear to be caused by some issue with the script, possibly features that were unfinished when the source code was posted. 

I've have several screen shots showing the error as it occurs in Fusion as well as the segment of code that seems to be the issue. 

 

In Fusion: 

errorFus1.png

errorFus2.png

 

 

In the code: 

 

ErrorIncode.png

 

_________________________________________________________________________________________________________

and: 

Error93

 

 

I read (in the request-a-feature link above) that the font needs to be entered manually for OS, so I'm confused as to why the dropdown feature is there at all. If possible I would settle for a defualt font within the program, I won't need to change it very often. I'm fairly certain that I installed it correctly and have not made any adjustments from the original file. At this point I have no idea why it's not working. 

 

I apologize if I'm missing something major or just made a foolish mistake -- I also realize it's difficult to debug someone else's code, but any help is appreciated. I'm fairly new to Fusion (and Python) but I have programming experience. I think this is a really awesome and essential feature that a lot of people are looking for, and I feel like it's really close to working. 

 

I'm using OSX 10.10.5, Fusion 2.0.2016, Python 3.5.0.  

 

Thanks in advance! 

Jesse 

 

Link to GitHub page: https://github.com/AutodeskFusion360/SurfaceText_python

Add-In description: https://rawgit.com/AutodeskFusion360/SurfaceText_python/master/helpfile.html#Contact

Attached: Full add-in code

3 REPLIES 3
Message 2 of 4
marshaltu
in reply to: Anonymous

Hello,

 

I change Surface Text addin a little bit and make it be able to work on both Windows and MAC. Please get the attached Python file and replace your local one to give a try.

 

Unfortunately not all fonts in dropdown list can work well. Some common fonts such as "Arial", "Arial Black" etc. can work smoothly in my machine.

 

Thanks,

Marshal

 

 



Marshal Tu
Fusion 360 Developer
Autodesk, Inc.

Message 3 of 4
Anonymous
in reply to: marshaltu

Amazing! I can't thank you enough.
Message 4 of 4
mark
in reply to: Anonymous

I am trying to run the add-in but I'm getting the error "Import "fontTools" could not be resolved".  How do I fix this?  I did "pip install fonttools" but it didn't fix this.  What should I do?

 

fyi: I posted a more general question about how to install a library like fontTools here: https://forums.autodesk.com/t5/fusion-360-api-and-scripts/how-do-i-install-python-library-like-fontt....

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

Post to forums  

Technology Administrators


Autodesk Design & Make Report