Page MenuHome

module 'bpy.utils' has no attribute 'register_tool'
Closed, ArchivedPublic

Description

Build 94503efb126

Running the tools template ui_tool_simple.py results in the error

Traceback (most recent call last):
  File "/ui_tool_simple.py", line 35, in <module>
  File "/ui_tool_simple.py", line 28, in register
AttributeError: module 'bpy.utils' has no attribute 'register_tool'

I assume the API simply changed, but I don't know what the new function is, unless tools are also supposed to be registered with register_class?

Details

Type
Bug

Event Timeline

This was removed intentionally, for the beta since Python developers may use - when it's almost certain the API will change.

  • No way to add groups of tools or add to existing groups.
  • Method of defining keymaps may change, isn't documented.

Ok but how are Python addon developers supposed to add active tools then?