You're blocking ads, which pay for BlenderNation. Read about other ways to support us.

Blender addon: Script Watcher

10

This is something that has bothered me every time I tried some Python scripting in Blender: if you use an external editor, your changes won't be automatically loaded. Script Watcher fixes that.

Isaac Weaver writes:

Hi, I just posted this on blender artists but thought I'd tell you about it too. It's an addon I developed to assists in the development of other script, specifically if you're using an external editor.

Basically, it watches the script you're developing for changes, whenever a change occurs it re-runs the script in blender. This allows you to save your file and instantly see blender update with the new version of the script.

About Author

Bart Veldhuizen

I have a LONG history with Blender - I wrote some of the earliest Blender tutorials, worked for Not a Number and helped run the crowdfunding campaign that open sourced Blender (the first one on the internet!). I founded BlenderNation in 2006 and have been editing it every single day since then ;-) I also run the Blender Artists forum and I'm Head of Community at Sketchfab.

10 Comments

  1. Excuse me the question, no offence intended, but what's the point of developing blender python script outside blender, when you can run it, test it or debug it only inside blender (because you most likely import bpy which is not available from outside blender)? Well, I guess you can have Blender compiled as python module, is that the case?

    • As a python project get's bigger and begins to span multiple files, it is very difficult to manage inside of blender. But with this addon you can layout your project the same way you would with any other python project, and things just work out the way they should ;)

      • Personally, I've lost a lot of development time because I accidentally reload a text block from disk when in fact the most up-to-date version was in the .blend. This can be extremely confusing and frustrating when you get it wrong.

        Also, if you haven't tried it yet, I strongly encourage you to try out PyCharm. It's an IDE for python, and it's just AMAZING! Blender's text editor is fine for really small stuff, but when the project/task gets bigger, it helps a LOT to have the basic error checking and text-completion that PyCharm has. It's a bit tricky to setup at first, to get it to where it recognizes imports like bpy and mathutils, but once you get past that it's freakin sweet!

    • Since no option is perfect and one-size-fits-all, it helps to have additional options (optionally available, of course) that help do better what some other option doesn't. ;)

Leave A Reply

To add a profile picture to your message, register your email address with Gravatar.com. To protect your email address, create an account on BlenderNation and log in when posting a message.