Just picking up the blender api, and am going through some tutorials. As far as I can tell, this should be completely acceptable code, but I keep getting an error when attempting to register the operator. I check the blender console, but all it gives is the line of the error, which is the register_class call.
Any idea?
class ExportOperator(bpy.types.Operator):
bl_idname = "opExport"
bl_label = "Export Me"
bl_description = "Testing"
def execute(self, context):
return {'FINISHED'}
bpy.utils.register_class(ExportOperator)