Gist 55d11f1b29079ced31e8868aac3bd9e9
✓ Published0🌍 Public
Aandybak
Last edited Mar 24, 2023
Created on Mar 23, 2023
This example shows a Blender add-on that receives 3D drawing strokes from Open Brush via HTTP and renders them as grease pencil strokes in the 3D viewport. A Python HTTP server with a custom `RequestHandler` listens for POST requests containing multipart form data, parses stroke point coordinates from JSON, and converts them into Blender Grease Pencil layers and frames using the `bpy.types.GreasePencil` and `GPencilLayer` APIs. The add-on provides start and stop operators to control the server connection on port 8080.
AI-generated description