Add-on Tutorial needs updating for 2.90+ #88513

Closed
opened 2021-05-24 00:46:35 +02:00 by Tysa · 2 comments

Pagename: advanced/scripting/addon_tutorial
Blender Version: 2.92
Documentation Language: en
Permanent link

Short description of error

Operator search no longer shows entries not in menus.

For Example: in "Write the Add-on (Simple)" there need to be changes like

def register():
    bpy.utils.register_class(ObjectMoveX)

to

def menu_func(self, context):
    self.layout.operator(ObjectMoveX.bl_idname)

def register():
    bpy.utils.register_class(ObjectMoveX)
    bpy.types.VIEW3D_MT_object.append(menu_func)
Pagename: `advanced/scripting/addon_tutorial` Blender Version: `2.92` Documentation Language: `en` [Permanent link ](https://docs.blender.org/manual/en/2.92/advanced/scripting/addon_tutorial.html) **Short description of error** Operator search no longer shows entries not in menus. For Example: in "Write the Add-on (Simple)" there need to be changes like ``` def register(): bpy.utils.register_class(ObjectMoveX) ``` to ``` def menu_func(self, context): self.layout.operator(ObjectMoveX.bl_idname) def register(): bpy.utils.register_class(ObjectMoveX) bpy.types.VIEW3D_MT_object.append(menu_func) ```
Author

Added subscriber: @Tysa

Added subscriber: @Tysa
Member

Closed as duplicate of #85625

Closed as duplicate of #85625
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-manual#88513
No description provided.