Blender Addons with Python Tutorial

preview_player
Показать описание
This is a tutorial for programming your first Blender addon. You know I have the Python programming tutorials to get you started if you are not familiar with the Python programming language.

The Blender addon we develop here is pretty simple but it's a nice template to understand addon development with Blender and Python.

Here are some useful links for blender addon programming:

Blender Python API Documentation:

Blender wiki code & snippets:

In-depth explanation if __name__ == 'main'

Here are my social platforms:
Рекомендации по теме
Комментарии
Автор

I've been waiting for a tutorial like this for a while! Thanks :)

RemingtonCreative
Автор

This is gold, makes me want to create some addon tutorials!

OlavD
Автор

Awesome Jayanam. I wish I could view this years back

vijaysridhara
Автор

thank you. this was great. works perfectly in 2.79... but of course not in 2.8!! will you be bringing out some addon tutorials for 2.8 soon? i know the API is not stable yet, but even a taster would be very helpful, say showing how to make a few simple 2.79 addons work in 2.8, starting with this one. and if this one will never work in 2.8 (perhaps because the whole tool shelf and its vertical tabs have gone - which i greatly regret) then perhaps you could show us something equivalent?

juliandarley
Автор

This is a wonderful tutorial. I discovered computers not too long ago and they freak me out. This makes it seem so simple. I'm into mechanical stuff, so a hardware panel with things like every type of industry standard fastener would make things go way faster. I was wondering how you could create such a thing. Should I model the items needed and then do this?

CIorox_BIeach
Автор

Very helpful, I have been meaning to get more into coding with blender. Thank you!

swanee
Автор

Lessons in variables and operators by in blender I have watch your whole Python lesson but I am more visual and I really think teaching those lesson agiain but with visual elements will help a lot more people trying to get it program with Python 3.5.2 using blender 3d

briancraig
Автор

Amazing tool!!!...Thanks so much Jayanam!...~_^

christopherlee
Автор

Very nice tutorial! I need this for placing Empties so i managed to use your code/addon for this. But is it possible to add x empties, where x is user selected? Also need specific names and rotation. I can do it in a script - but not in an addon.
Would you help?

BjrnLund
Автор

Can't unregister panel, im getting this error:

RuntimeError: unregister_class(...):, missing bl_rna attribute from 'RNAMeta' in
stance (may not be registered)

#Blender 2.78
#script.py :

import bpy
from bpy.types import Panel

class SimplePanel( Panel ):

bl_space_type = "VIEW_3D" # Add new panel in 3D view
bl_region_type = "TOOLS" # Add new panel in 3D View side [T] Tools Panel
bl_label = "Tools Tab Label" # Group
bl_context = "objectmode"
bl_category = "Mycategory" # Side panel target tab

#Add UI Elements here
def draw( self, context ):
layout = self.layout
layout.operator('mesh.primitive_cube_add', text="add new CUBE 3")


#Register
def register():
bpy.utils.register_class( SimplePanel )

#Unregister
def unregister():
bpy.utils.unregister_class( SimplePanel )

if __name__ == '__main__' :
unregister()


#Edit:
I am still able to move the tool into different categories and change it's label, but it still doesn't seem to unregister

Vladeeer
Автор

Great Tutorial thanks, Can you connect multiple operators to one button so for instance these 2 'mesh.bridge_edge_loops' and ?.

simoncull
Автор

thank you for addon tutorial..i am newer at python :))

rhodium_monarch
Автор

Got a Question? Does this Cover Other Blender add-on Plugins like how to make cloth system that simply design clothes rather than Buying
the expensive Clothing software like Marvelouse Designers.

scaly_pridestudio
Автор

Could you be so kind to specify in the description if there is a 2.8 version of this?

fullyfeatured
Автор

Could you please write a addon, which can blur effects which were made in the compositing?
So that Blender has something like RSMB or Pixel Motion Blur from Ae

Jean-dxbo
Автор

sorry I tried it in recent version of blender and it doesn't work anymore

alexandreducrocq
Автор

What is the difference or advantage of importing panel from bpy and passing it in instead of passing in bpy.types.panel as the class argument. Also I've noticed all of the tools in the View3DPanel inherit from both panel from bpy.types and View3DPanel created from panel. What is the advantage or point of this? If you could shed some light on it for me I'd be very grateful. Thank you for the tutorials.

joshbogart
Автор

Thank you very much sir, can you please make a addon tutorial on auto_rig pro v3.19 script, for blender.

Because i am facing many mistakes on face and body rigging.

pampanabhanuteja
Автор

Amazing, can you make a tutorial of animation nodes addon for Blender please?

tupatube
Автор

If I want to make my own primitives for my own menu as I can save or save them to be called by blender

I can't see icons in the properties menu, why ¡?

mauricioyaman