I want to type some message for people to see when they just installed the add-on. I need a message to them in add-on preferences. How can I do it?
1 Answer
$\begingroup$
$\endgroup$
1
Type your text in add-on preference script:
bl_info = {
"name": "Example add-on",
"author": "Your name here",
"version": (1, 0),
"blender": (2, 92, 0),
"location": "Your location here",
"description": "Your description here",
"wiki_url": "",
"tracker_url": "",
"category": "Development",
}
import bpy
class AddonPreferences(bpy.types.AddonPreferences):
bl_idname = __name__
def draw(self, context):
layout = self.layout
col = layout.column()
#Type your text
self.layout.label(text="Your text here")
def register():
bpy.utils.register_class(AddonPreferences)
def unregister():
bpy.utils.unregister_class(AddonPreferences)
Finally I got this
-
$\begingroup$ Thank you. I have done successfully. $\endgroup$ Commented Apr 3, 2021 at 10:53