A complete list of add-ons installed in Blender we can get using the addon_utils:
1 2 3 4 |
import addon_utils print(addon_utils.modules()[:]) # <module 'space_view3d_3d_navigation' from ... |
Having the add-ons list, we can get the version of the desired add-on by its name with the following code:
1 2 3 4 |
import addon_utils print([addon.bl_info.get('version', (-1,-1,-1)) for addon in addon_utils.modules() if addon.bl_info['name'] == 'ADD-ON_NAME'][0]) # (1,4,0) |
Where the ADD-ON_NAME is the name of the desired add-on.
If the add-on is missing a version indication, the default result will be returned.
1 |
# (-1,-1,-1) |