Script To Button
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.
1. Download the Add-on from GitHub as .zip file
2. Start Blender and navigate to Edit -> Preferences -> Add-ons and click "Install"
3. Select the Add-on named "ScriptToButton.zip" or "ScriptToButton-master.zip" and import it as .zip file
4. Enable the Add-on
Go to the Sidebar. A tab named "Script To Button" is now available.
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 selected 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.
Load from Disk
A warning message is shown and when executed all buttons in Blender will be deleted and loaded from the disk.
Load from Texteditor
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.
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 the selected button. When the button is pressed a popup appear with a text field to put in the new Name.
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 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