I am working through this tutorial:
https://docs.blender.org/manual/en/latest/advanced/scripting/addon_tutorial.html
I have copied the script below from the tutorial and it compiles without any errors when I run the script. I should be able to search "Move X by One" in the operator search menu (F3) to execute the operator, but it does not show up in the operator search menu. How can I get the operator to show up in the search menu? Has something changed in blender 2.9?
bl_info = {
"name": "Move X Axis",
"category": "Object"
}
import bpy
class ObjectMoveX(bpy.types.Operator):
bl_idname = "object.move_x"
bl_label = "Move X by One"
bl_options = {'REGISTER', 'UNDO'}
def execute(self, context):
scene = context.scene
for obj in scene.objects:
obj.location.x += 1.0
return {'FINISHED'}
def register():
bpy.utils.register_class(ObjectMoveX)
def unregister():
bpy.utils.unregister_class(ObjectMoveX)
if __name__ == "__main__":
register()