Script To Button gives you the possibility to convert your Blender scripts into a button. The add-on saves your scripts so that they can be used in any other Blender project. You can also define properties for your script that allow you to use user input in your script.
- Go on the left side to Release and download the latest Version
ScriptToButton.zip
at the bottem under Assets. - Start Blender and navigate to Edit -> Preferences -> Add-ons and click "Install"
- Select the Add-on named "ScriptToButton.zip" or "ScriptToButton-master.zip" and import it as .zip file
- Enable the Add-on
Go to the Sidebar. A tab named "Script To Button" is now available. (Also see Wiki)
Here are control buttons for the Add-on located.
Add a new Button to the "Buttons" Panel.
When the button is pressed a popup will appear with options to name your button and to select the script from Texteditor which will be linked to the Button.
Remove the selected Button from the "Buttons" Panel.
When the button is pressed a popup will appear with the options to delete the button from file and also the linked script.
Give you the option to load all buttons from the Disk or from the Texteditor. When the button is pressed a popup will appear with a switch to decide where to load from.
A warning message is shown and when executed all buttons in Blender will be deleted and loaded from the disk.
All Texts are represented with a checkbox to decide which to load.
If the Button exist it will be reloaded otherwise a popup will appear with the option to add or skip this script.
(only available when Autostart is off)
Save all buttons to the disk.
Loads the selected Button into the Texteditor.
Reload the linked script of the selected button.
If Autosave is active the button is also saved on the disk.
Give you the option to rename and remove properties of the selected button. When the button is pressed a popup appear with a text field to put in the new name and a list of the properties.
Opens an export window to export your buttons as .py files or one .zip file.
On the right side of the export window are the option to choose in which format you want to export the scripts. Under this option, all buttons are listed with a checkbox to decide which ones to export.
Opens an import window to import .py files or .zip files .
You can select multiple .py and .zip files to import them all at once.
All your buttons are displayed here
All registered properties of the selected button are displayed here