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

An Introduction to Scripting


Darkfall writes:

In this Video we will be taking a look at Scripting with Blender Python - bpy.

Before we begin, I should mention that I am in no way an expert and in fact, I have only been learning Python (and Scripting in general) for a short time. That being said, I went from knowing absolutely nothing - to developing the Darkfall VFX Nodes Add-on (You can check out the Blender Nation posts here: ).

Learning Python or Scripting may seem daunting at first but with some time and patience, anyone can create something awesome.

If you do get stuck however, you can always check out the Blender Docs (which is stockpiled with tons of useful information and some really good examples). You can also check out the Blender Stack Exchange, I have been saved many times by helpful users over at the Stack Exchange and certainly recommend using it.

Blender also comes with many Python Templates for you to use. I find it a good idea to look through them and see how they are structured and with some minor changes they can be implemented into our own scripts.

In this Introduction, we will be creating a very simple add-on that I dubbed the "Object Adder".. (yeah the name need's a little work but you get the Idea).

In the 3D View, we create a Panel that has a bunch of buttons. When pressed, an object will be added to the scene. So yeah, it's not very impressive but if (like me) you thought you would never have been able to code something, you have just made your first steps into the new world of Python!.

There are different ways we can layout the Panel and make it look "pretty", though since there is so much to cover it probably would take a whole video just dedicated to that. The First version of the VFX nodes was a mess, not only did it look bad but it was also rather hard to navigate. Then after many comments and suggestions I started to develop version 1.2 (which looked much better and ran a lot smoother).

So thanks to those who used the Add-on I took their feedback and was able to improve it with each new version. So that being said, if you find yourself stuck or in need of help improving your add-on, be sure to take all the feedback you can.

As I said, there is a lot to cover and a single video would only scratch the surface. So if you enjoyed this video and want more, let us know in the comments!.

I hope you found this helpful and as always, thanks for reading!.

About Author

John Brook

I make Youtube tutorials for blender Users. From CG and VFX to Animations, Shorts and Asset Creation. I upload tutorials once a week along with any assets we create for you to use in your own projects.

Leave A Reply

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