Skip to content

Instantly share code, notes, and snippets.

@zeffii
Created June 8, 2013 11:30
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zeffii/5734884 to your computer and use it in GitHub Desktop.
Save zeffii/5734884 to your computer and use it in GitHub Desktop.
import bpy
class RENDER_OT_test(bpy.types.Operator):
bl_idname = 'render.oha_test'
bl_label = 'Test'
bl_options = {'REGISTER', 'UNDO'}
def execute(self, context):
self.report({'DEBUG', 'INFO'}, 'Printing report to Info window.')
return {'FINISHED'}
def register():
bpy.utils.register_class(RENDER_OT_test)
def unregister():
bpy.utils.unregister_class(RENDER_OT_test)
if __name__ == "__main__":
register()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment