Timeline for How to have Blender run my script from the filesystem rather than the script window?
Current License: CC BY-SA 4.0
11 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 4, 2021 at 9:00 | comment | added | batFINGER | Please read meta.stackoverflow.com/questions/285551/… | |
Feb 3, 2021 at 19:32 | vote | accept | kitfox | ||
Feb 3, 2021 at 9:27 | comment | added | Martynas Žiemys |
But sure here are the two words for someone who might want to copy and paste them without typing: from and import :D
|
|
Feb 3, 2021 at 9:24 | comment | added | Martynas Žiemys | These are only to illustrate where the info can be found. I would like to encourage the OP to study the add-ons as examples and find whatever suits his situation best instead of necessarily using this what I found in 30 seconds without much thought. | |
Feb 3, 2021 at 9:16 | comment | added | batFINGER | Please post scripts as text. | |
Feb 3, 2021 at 9:02 | comment | added | Martynas Žiemys |
I see. Don't install a zip file, just have a folder in %appdata%\Blender Foundation\Blender\2.91\scripts\addons with your files. If the addon is enabled in the preferences it will be reloaded every time you use Reload Scripts operator in Blender. Search for it with F3 by name or make a hotkey maybe. Once you are done developing, pack everything to a zip. It's here as well: i.imgur.com/UZFcjx7.png
|
|
Feb 3, 2021 at 8:56 | comment | added | kitfox | Well, that's the problem. What I'm looking for is an efficient way to write/debug where I can have Blender reload my code every time I make a change. If I have to rebuild my zip, uninstall the old version and then reinstall the new one every time I change a line, it is a huge drag on my development time. | |
Feb 3, 2021 at 8:54 | comment | added | Martynas Žiemys | I edited the answer. They are just simple .zip archives that you can make with utilities like 7zip or similar and they contain a folder named after the addon and all the files in it. | |
Feb 3, 2021 at 8:53 | history | edited | Martynas Žiemys | CC BY-SA 4.0 |
added 144 characters in body
|
Feb 3, 2021 at 8:47 | comment | added | kitfox | Okay, but how would I install that? As far as I can tell, the addon installer only accepts zip files. | |
Feb 3, 2021 at 8:40 | history | answered | Martynas Žiemys | CC BY-SA 4.0 |