I'm trying to build an add-on that creates buttons in the viewport depending on the selected object/rig. I'm quite new to that and I'm not a dev but I really wished to be able to do it.
I've just started the coding and already have my first headache. I'm creating a enumarator panel and wish that it appears in the viewport panel, the script runs but the enumarator isn't there. What am I doing wrong?
Any advices in how to understand coding in Blender will be greatly appreciated! So far I'm watching tutorials (including scripting for artists) and looking for info in the api reference. Also, any advices on how to produce this custom button add-on (which sort of simulate the custom properties of an object data) will be appreciated! Cheers!
(identifier, display_name, description)
. Description can be an empty string""
. see docs.blender.org/api/current/… PropertyGroups don't supportbl_idname
, you can remove this line. You should unregister your classes in the reversed order from which you registered them, to avoid dependency clashes. (for cls in reversed(classes):
$\endgroup$