This is a very simple HTTP server for Unix, using fork(). It's very easy to use
- include header
httpd.h - write your route method, handling requests.
- call
serve_forever("12913")to start serving on port 12913
| #import the bpy module to access blender API | |
| import bpy | |
| #WARNING: this is written and tested for blender 2.79 | |
| #blender 2.8 and newer will likely have a different python API | |
| #create a property group, this is REALLY needed so that operators | |
| #AND the UI can access, display and expose it to the user to change | |
| #in here we will have all properties(variables) that is neccessary | |
| class CustomPropertyGroup(bpy.types.PropertyGroup): |