Speeding up addon creation - any ideas?

OK - I’ve started making addons which are 90% my nodegroups plus a little python code made with the help of ChatGPT (a can hear you’re cries of dis-approval)

But I’m finding every time we update the code we have to

  1. Copy Paste into notepad
  2. Save
  3. Delete the old Zip
  4. Re-Zip the folder
  5. Blender Preferences
  6. Remove the old addon
  7. Install the new addon

and finally test it.

That’s a lot of stages.

Is there a way to speed this up?

Try VScode with the Blender development extension. A little cumbersome to set up but once it works, it’s a breeze. Plus it comes with a nifty auto-load script that gets rid of having to registering your classes in the right order. Otherwise you may set up symlinks between your dev environment and the blender addon folder, that’s pretty much how the VScode extension works. Also, please don’t use notepad ^^ unless you meant notepad++.

2 Likes

I just wish I knew a way to do the same with PyCharm here - my C drive is to close to full to try to install VSCode correctly so I’m still doing to the smaller version add-ons and then once proofed, bringing the parts into the main addon and testing that.

That is not a helper. It may look that it makes things go, but it deepens you into ‘dark territories’ very quickly!!

You could use a versioning tool (i.e. git), and just create a patch with the differences between different versions.
Of course, AI code can change substantial between requests for modifications (which an human programmer avoid it at all costs), and your patches could be the size of the whole addon! You just need to apply the patch over the current system, and reload…

If the addon identification is the same, you just need to reload the addons…
you could add a call for this anywhere in Blender. (AI won’t ever do this for you!)

I’ve found a way to speed it up a bit - I work out where the addon saves within blender

C:\Users\mikef\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\pipes and screws

or wherever it is.

I have to restart Blender each time, but it’s much faster than installing the whole thing each mod.

Like I say, the addons are mostly geonodes with some python for adding the nodes to objects, controlling vertex groups, and things like that.

1 Like

It looks a bit of a clumsy way of work, may i say… But whatever works, right?!

1 Like