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: 

Toolbar icon for addin script ?

2 REPLIES 2
Reply
Message 1 of 3
info83PHN
171 Views, 2 Replies

Toolbar icon for addin script ?

I know I can assign a keyboard shortcut and then open the 'scripts and add-ins' window.

 

Is there a way to either add a keyboard shortcut to a specific add-in script, or add a toolbar icon / button linked to a script that is used very often ?

2 REPLIES 2
Message 2 of 3
kandennti
in reply to: info83PHN

Hi @info83PHN .

 

As with the normal command, Hotkey could be set for any add-in in the activated state.

https://forums.autodesk.com/t5/fusion-360-api-and-scripts/is-there-anyway-to-assign-a-script-or-add-... 

 

However, at the time of the link, Hotkey seemed to be available even after restarting, but with Ver. 2.0.15027, Hotkey will no longer function.

"Change Keyboard Shortcut..." the settings were still there, but they did not respond as Hotkey.

 

Message 3 of 3
BrianEkins
in reply to: info83PHN

There isn't a way to set up a button for a basic script. It would be a nice feature to have.

 

What is possible is to create an add-in instead of a script. Add-ins are automatically run when Fusion starts, where they can create a command and add a button to the UI. When the button is clicked, the desired action takes place. This increases the complexity of the code quite a bit but is supported today. Another advantage you get with a command is the actions are all combined into a single undo.

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com

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