Blender Python Tutorial: An Introduction to Scripting [learn python for beginners- bpy]

///Blender Python Tutorial: An Introduction to Scripting [learn python for beginners- bpy]

Blender Python Tutorial: An Introduction to Scripting [learn python for beginners- bpy]

FavoriteLoadingAdd to favorites

Blender 2.8 Tutorial, learn python scripting (for beginners)
In this video we will be taking a look at a basic introduction to Blender Python for beginners. Now I should mention that I am in no way an expert and in fact I only just started to learn python (and scripting in general) not that long ago.

We will take a look at some tips I have picked up, then arrange our scripting layout (it’s a good idea to save a template file for future projects).

In this example we will create an “Object Adder” Add-on. We will create a Panel for the 3D View. It will have a couple of buttons that when pressed, will add the specified object to our scene.

I know most of you will have an idea in mind, something you wish to achieve using python and we won’t be able to cover everything in this one video. That being said, if you guys have any suggestions on what you want to see be sure to leave a comment below and I will try and answer it (or link to relevant information) if possible.

I hope you not only find this video helpful but I also hope it inspires you to continue to learn python.

Links –

Blog post:
Facebook Group:

Twitter:

Download Blender:

source

By |2021-07-31T15:23:21+00:00July 31st, 2021|Python Video Tutorials|32 Comments

32 Comments

  1. Kenan Proffitt July 31, 2021 at 3:23 pm - Reply

    Really cool man. Nice work! The community could use more of these types of videos.

  2. CaptainChubbyDuck July 31, 2021 at 3:23 pm - Reply

    Hi thanks for the slow and good tutorial 🙂 I was wondering, I encountered an issue where I cant add a third button to the UI. I dont get any compile errors or the like. Whats up with that?

  3. Mom and dad July 31, 2021 at 3:23 pm - Reply

    It is very hard

  4. Antonio Yazzie July 31, 2021 at 3:23 pm - Reply

    question how would you write out for tab not to be included in another script. Like i have the Tabs interface and i want to keep the object adder and shader library off to the side but it keeps getting included in the tab panel.

  5. Nicksoft Gma July 31, 2021 at 3:23 pm - Reply

    I require two scripts for cameras and animations of a game called pes 2013, will I pay you how do I communicate with you?

  6. SF Gamer 5.0 July 31, 2021 at 3:23 pm - Reply

    Is python free ?

  7. Meme Me July 31, 2021 at 3:23 pm - Reply

    You got 5000 download from your app you made from Blender? Damn thats great! How much do you sell it? Can you sell assets (i know you can but) that already exist like a planet but looking different and sell it for like 5$ (how do you upload an assets or addon on blender market or something? Ty in advance! sorry for my english.

  8. T.Mohith Raajan July 31, 2021 at 3:23 pm - Reply

    Hey darkfall do you have a tutorial to create a node addon like animation nodes

  9. Suryakant Thakur July 31, 2021 at 3:23 pm - Reply

    This is my 1st video from where i starting to learn blender python
    .
    I ran the program its giving me error in line
    def register():
    bpy.utils.register_class(TextPanel)

    Its saying that python script faile, check the message in system console but there is no message nor any type of error is shown , can you tell me why this happening even i used the template its running there good but when i put all stuff of changes into it it shows error in that line

  10. Tianchi Ma July 31, 2021 at 3:23 pm - Reply
  11. aravind muthu July 31, 2021 at 3:23 pm - Reply

    is it possible that I keep my py file in a seperate code editor (like vscode) , because the blender window is too small

  12. Alessandro Zuech July 31, 2021 at 3:23 pm - Reply

    Great tutorial!

  13. Net Casual July 31, 2021 at 3:23 pm - Reply

    Can you make an tutorial on how to make custom icon by scripting in blender? I've tried different ways in Blender stack exchange but they doesn't work for me, or I don't understand how it works. There is a script I found was work but it only works if I run script but not work if I install the add-on. I know there is a custom icon python template in Blender. Can you make tutorial about custom icons?

  14. Kort Channel July 31, 2021 at 3:23 pm - Reply

    Хороший туториал, спасибо

  15. Speed Lengend July 31, 2021 at 3:23 pm - Reply

    Hi Darkfall, I want to ask how could I know the material output location. Do any tips to identify the value of X Y Z location of material nodes?

  16. Ateş Şahin July 31, 2021 at 3:23 pm - Reply

    Thanks for tutorial!

  17. LilP2xel July 31, 2021 at 3:23 pm - Reply

    thank you so much for this video

  18. jamest0m July 31, 2021 at 3:23 pm - Reply

    When you add an operator like object.test_add, why do you not need the "bpy.ops" as the full class path?

  19. Rajesh Kumar Agrawal July 31, 2021 at 3:23 pm - Reply

    Dear Sir, can u make it animated water with Pythone code in blender?

  20. Arch Cast July 31, 2021 at 3:23 pm - Reply

    This is the best introduction i have ever seen! ! ! ! subscibing!

  21. marianna cerullo July 31, 2021 at 3:23 pm - Reply

    How do you give a character (e.g. a default cube) controls to move up, down, left, right and obviously, jump

  22. Surbhi Madan July 31, 2021 at 3:23 pm - Reply

    i am having head motion data as "pitch roll and yaw angles" . I want to visualize it on human face and head. Is there any script related with that?
    If you could reply, it wiu=ll be a great help.

  23. Kaiwen Li July 31, 2021 at 3:23 pm - Reply

    I’m a beginner learning Blender, and I know nothing about Python. Would you recommend that I learn Python from the basics in a programming course, or try to learn it in the context of Blender?

  24. Edwin Devey July 31, 2021 at 3:23 pm - Reply

    Hi, Great tutorial. I was really pleased to find this but having copied your example and checked it over the information view shows that the script ran OK but the new tab does not appear. I am using Blender version 2.9. Do you know if anything changed to hide new panels?

  25. panetyo July 31, 2021 at 3:23 pm - Reply

    can you help me, I have tree were all branches are separate object and trunk, I need generate armature were one branch have one bone, do you have any idea how to start?

  26. ItzThe Poyratz July 31, 2021 at 3:23 pm - Reply

    I tried python with a free udemy course but didn't find the motivation to finish and unfortunately forgot everything. There was stuff like lists, dictionaries, tuples and hello world. Maybe After I learn 3d modelling, animation and vfx more I could try coding again.

  27. Akmul Alegnos July 31, 2021 at 3:23 pm - Reply

    such a good video

  28. Gato Quantico July 31, 2021 at 3:23 pm - Reply

    Lovely video. I'm starting a science youtube channel (in Spanish) and I need these kinds of things to get the animations set and going. Lovely accent. I can obviously tell that it is from the UK. London and whereabouts?

  29. MAGA MAN July 31, 2021 at 3:23 pm - Reply

    How do you do a floating window? I don't understand why they want this stuff docked into views or stuck in the same panel with a million other properties. This program is idiotic in the way the UI is designed.

  30. Matrat57 OG July 31, 2021 at 3:23 pm - Reply

    Your tutorials are the ONLY good reference for coding in blender on internet men, bless you . Without you I would have just fucking quit period

  31. 2299_ Raaj_Jaiswal July 31, 2021 at 3:23 pm - Reply

    tysm brother

  32. thajmul hussain July 31, 2021 at 3:23 pm - Reply

    Nice tutorial

Leave A Comment

*