Blender Python Tutorial : Class Naming Convention [learn python for beginners]

preview_player
Показать описание
Blender 2.90 Tutorial, learn python scripting (for beginners)
In this video we will take a quick look at how to properly name our classes.

Looking to learn Python for beginners? You are in the right place. Be sure to check out the Scripting Playlist!.

In past videos I may have (incorrectly) told you to name your classes in a way that may kick up an error message. We should follow the Correct Naming Convention in order to keep our scripts tidy and separate.. If we have Classes that share the same name we could cause unexpected results.

I hope this quick Blender Python Tutorial helps and as always thanks for watching!.
Рекомендации по теме
Комментарии
Автор

Super useful -- thanks! Is all of this listed in the Blender documentation somewhere?

Ethan
Автор

@Darkfall Where are these type naming conventions documented? I mean the OT, MT, HT, PT, etc? Is there a specific abbreviation for Pie-Menus or would they fall into the MT type category?

mixchief
Автор

Thanks for the upload. I'm writing a script to help make lyric music videos.

christophervaca
Автор

hey! Have a question, using this naming convention, how would you name bl_idname for an operator, as it needs to contains a ".".

hulpesergiu
Автор

is it possible to define a variable then call that variable when nameing the class EX

x = My_Panel
class x(whatever):

will that came up as the panel being called My_Panel, If not how can I do this

TheSpaceAge
Автор

At about 4:03, audio cuts out for a few seconds. You were describing camelCase, then we can see you changing it back to underscore - but can't hear.

trelligan
welcome to shbcf.ru