Created
June 8, 2013 11:30
-
-
Save zeffii/5734884 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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