Skill

gpu-drawing-and-overlays

Draw viewport overlays and offscreen images with the gpu module instead of the removed bgl: SpaceView3D.draw_handler_add/remove symmetry, gpu.shader.from_builtin names, gpu_extras.batch.batch_for_shader, gpu.state for blending, depth and line width (POLYLINE shaders), blf text, tag_redraw, and GPUOffScreen with gpu.init() for --background on 5.2. Use when the user wants a viewport overlay, measurement readout, guide lines, debug visualization or an offscreen render from Python, or hits ModuleNotFoundError: No module named 'bgl' or 'GPU functions for drawing are not available in background mode'. Targets 5.2 LTS with 4.5 LTS fallback.

Bundled with Blender Developer Tools. Its trust score, security findings and other files are on the plugin page.

SKILL.md

Path
skills/gpu-drawing-and-overlays/SKILL.md
Size
11 KB
SHA-256
8b5d0797ff180eb0a65e43edd3e12fb6d278a6df3d75e22e288d8d713c055b25

Install

Install the plugin's skills with the Skills CLI:

npx [email protected] add TMHSDigital/Blender-Developer-Tools