Previously, add-on and extension developers could only include an HTML link, such as to a contact form or a website with additional information and documentation, in the add-on/extension’s information section. The link was displayed as a button in the information block in the Preference – Add-ons area. Since Blender 5.2, developers have been able to place HTML links anywhere on the UI panels.
The most convenient way, of course, is to place such links on the user panels of the add-ons/extensions themselves.
An HTML link is added to a panel in the same way as buttons and other interface elements. To add a link, use the “layout.link” command.
As an example, let’s create a test user panel in the 3D viewport area.
|
1 2 3 4 5 6 7 8 9 |
class TEST_PT_panel(bpy.types.Panel): bl_idname = 'TEST_PT_panel' bl_label = 'TEST PANEL' bl_space_type = 'VIEW_3D' bl_region_type = 'UI' bl_category = 'TEST' def draw(self, context): # test panel UI |
And register it in the Blender Python API so it can be viewed and used.
|
1 |
bpy.utils.register_class(TEST_PT_panel) |
Now, inside the draw() function of our panel, add a link, for example, to a website.
|
1 2 3 4 5 |
self.layout.link( url='b3d.interplanety.org/en', text='My Website', icon='INTERNET' ) |
In the “url” parameter, we specify the actual link address. In the “text” parameter, we specify the text representation – the link text that will be shown to the user. And in the “icon” parameter, we can specify an icon from Blender’s standard set, which will be placed to the left of the link.
After adding this command call to the draw() function, the created link will be displayed on our panel.
By default, links are centered horizontally in the middle of the panel. However, we can specify left or right alignment. Let’s add another left-aligned link to the panel.
|
1 2 3 4 5 6 |
self.layout.alignment = 'LEFT' self.layout.link( url='https://github.com/Korchy', text='See my add-ons on GitHub', icon='EXTERNAL_DRIVE' ) |
Our panel class now looks like this:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
class TEST_PT_panel(bpy.types.Panel): bl_idname = 'TEST_PT_panel' bl_label = 'TEST PANEL' bl_space_type = 'VIEW_3D' bl_region_type = 'UI' bl_category = 'TEST' def draw(self, context): self.layout.link( url='b3d.interplanety.org', text='My Website', icon='INTERNET' ) self.layout.alignment = 'LEFT' self.layout.link( url='https://github.com/Korchy', text='See my add-ons on GitHub', icon='EXTERNAL_DRIVE' ) |
Now our panel will display two links, one below the other, to the website and to the GitHub repositories.

.blend file on Patreon