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: 

GithubToFusion360 - Install script or add-in from Github repo automatically

16 REPLIES 16
Reply
Message 1 of 17
JeromeBriot
4033 Views, 16 Replies

GithubToFusion360 - Install script or add-in from Github repo automatically

Hello,

here is a Python code that automatically install a Fusion 360 script (or add-in) from a Github repository. It works on Windows and on Mac. Watch the screencast attached to view the code in action (or see it there: http://autode.sk/2DMnEN9)

The script (or add-in) code must be in the root directory of the Github repo. The manifest file is also mandatory.

I attached a zip file with the Python code and the manifest file for the moment. So you need to manually install GithubToFusion360. But if people find it useful, I will submit this to the Autodesk app store (for free).

Waiting for your comments.

Thank you

16 REPLIES 16
Message 2 of 17
prainsberry
in reply to: JeromeBriot

Yes!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! To you sir, I tip my hat.

 

I have been wanting to do something like this for a long time.  But haven't gotten around to it.  

 

How would you feel if we included this as 'sample code' in the product?  No guarantees, but I bet I can twist some arms to make it happen.

 

I already have some enhancement ideas 🙂 LOL

 

 



Patrick Rainsberry
Developer Advocate, Fusion 360
Message 3 of 17
prainsberry
in reply to: JeromeBriot

Yes!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! To you sir, I tip my hat.

 

I have been wanting to do something like this for a long time.  But haven't gotten around to it.  

 

How would you feel if we included this as 'sample code' in the product?  No guarantees, but I would make the case.

 

I already have some enhancement ideas 🙂 LOL

 

 



Patrick Rainsberry
Developer Advocate, Fusion 360
Message 4 of 17
prainsberry
in reply to: JeromeBriot

Hey man is there somewhere else you would want people to go for this?  I was going to link to it and re-write my install guides to just use this, but I'd like to point people to the proper place to reference your work.

 



Patrick Rainsberry
Developer Advocate, Fusion 360
Message 5 of 17
JeromeBriot
in reply to: prainsberry

Hello Patrick,

 

GithubToFusion works on Windows only for the moment because I recently found a problem with the version of OpenSSL used by Fusion 360 on Mac. See this thread: [Python] Outdated version of OpenSSL on Mac ?.

 

So I will first submit the addin to the Autodesk App store for Windows only. This will be done in a couple of days.

Message 6 of 17
JeromeBriot
in reply to: JeromeBriot

Hello,

 

the script is finally available at the app store: Install scripts or addins from GitHub

 

Now I need to find a way to modifiy the first message of this thread to remove the zip file…

 

Thanks

Message 7 of 17
JeromeBriot
in reply to: JeromeBriot

Hello,

 

I just found a potential bug in the add-in. I already submitted a fix but it may take time before it will be available in the app store.

 

The code may (misteriously) complain about "module 'urllib' has no attribute 'request'":

 

GitHubToFusion360-urllib-request-bug.png

If you face this issue, edit the file GitHubToFusion360.py and modify line #7 from:

import urllib

to:

import urllib, urllib.request

So it will force the module to import.

 

 

Screencast will be displayed here after you click Post.

0a2b9933-a1cb-4cae-9a7d-9a4c5092dc66

 

Message 8 of 17
JeromeBriot
in reply to: JeromeBriot


@JeromeBriotwrote:

GithubToFusion works on Windows only for the moment because I recently found a problem with the version of OpenSSL used by Fusion 360 on Mac. See this thread: [Python] Outdated version of OpenSSL on Mac ?.


Hello,

 

I'm pleased to announce that GitHub2Fusion360 will be available on Mac soon!  Smiley Very Happy

 

I finally found a workaround to the SSL limitation. I spent hours trying to find a solution in Python without success. The version of Python shipped with Fusion 360 is linked against the outdated version of OpenSSL on Mac. The only way I found is to use a command system with the "subprocess" module (more informations in the thread quoted above).

 

Many thanks to all those who have already installed GitHub2Fusion360.

 

Message 9 of 17
JeromeBriot
in reply to: JeromeBriot

Hello,

 

the Mac version of GitHubToFusion360 is now live on the app store!

 

 

Message 10 of 17
Igorva
in reply to: JeromeBriot

Thank!

Very useful tool!

Message 11 of 17
JeromeBriot
in reply to: JeromeBriot

Hello,

 

A new version 2.2.0 is available on the App Store (Windows & Mac)

 

I added a workaround to manage this bug: [Bug] NMachineSpecificOptions.xml not valid (prefix IronPostProcess-builtin) 

 

I also removed the workround for macOS:

 


The version of Python shipped with Fusion 360 is linked against the outdated version of OpenSSL on Mac. The only way I found is to use a command system with the "subprocess" module (more informations in the thread quoted above).

This was no more needed since the upgrade of the version of Python installed with Fusion 360.

 

Message 12 of 17
JeromeBriot
in reply to: JeromeBriot

New version available (2.3.0) on the App Store (Windows & Mac)

  • Add ability to import sources located in a subfolder of the GitHub repo
  • Change prefix of temporary folder name from "F360_GitHub_" to "GitHubToFusion360_"
Message 13 of 17
Anonymous
in reply to: JeromeBriot

You sir are a scholar and a saint. Thank you for making this!

Message 14 of 17
JeromeBriot
in reply to: JeromeBriot

New version available (2.4.0) on the App Store (Windows & Mac)

  • Add support to "main" branch of GitHub repos ("master" => "main" in repo created after October 2020)
  • Fix a bug if repo is empty
  • Refactor some code
  • Fix some typos
Message 15 of 17
JeromeBriot
in reply to: JeromeBriot

Message 16 of 17
JeromeBriot
in reply to: JeromeBriot

New version available (2.5.0) on the App Store

  • Fix an issue with master/main branches for some repos

 

Message 17 of 17
JeromeBriot
in reply to: JeromeBriot

New version available (2.6.0) on the App Store (Windows & Mac)

  • Add GitLab repositories support
  • Change the displayed name from "GitHubToFusion360" to "Git To Fusion"
  • Add support for French language
  • Add support for German language
  • Fix a bug with Turkish language

 

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

Post to forums  

Autodesk Design & Make Report