dsh-blender-annotate: Annotating Blender Models in DeepSeek Harness

Introduction

When viewing 3D models in DeepSeek Harness (DSH), you often need to communicate precise location details to the AI, such as “the normal direction of face #5 on the outer left leg” or “the vertex coordinates of the right arm joint.” Describing these in plain text is inherently ambiguous, and DSH’s native sidebar file preview only provides a static WebGL view with no way to interactively extract model details.

The dsh-blender-annotate plugin layers annotation capabilities on top of DSH’s preview component: click anywhere in the Blender scene to obtain structured information such as exact surface points, object hierarchy, source face indices, UV coordinates, and more, then directly locate model elements via bpy code paths, and finally write the annotations along with a screenshot into the conversation.

Plugin Overview

dsh-blender-annotate is a client-side plugin for previewing and annotating Blender .blend files in the DeepSeek Harness right sidebar. It leverages Headless Blender to generate cached glTF/GLB files, renders them with a WebGL renderer, and integrates an annotation editor that allows users to draw geometric shapes (arrows, rectangles, circles, etc.) directly on the view, sending annotations alongside the model into the chat.

The plugin is maintained by iimaguest, forked from two projects by 439436269-ctrl: dsh-preview-blender and dsh-preview-snip, and is released under the MIT license.

Core Features

Click Annotation & Structured Information

When “Annotate” mode is enabled, clicking any location on the model causes the plugin to extract the following information:

  • Exact surface point: Based on the export cache key + node/prim/triangle + barycentric coordinates, stored as a structured JSON reference.
  • Object & instance: Located via the glTF node path and scene JSON, including object, instance, collection, parent-child relationships, and custom attributes.
  • Source face index & material: Utilizes the _DSH_FACE / _DSH_SRC custom attributes written by the Blender glTF exporter.
  • Boolean cut faces: Annotations are attributed to the cutting object and its own face indices.
  • In-face parameters: Barycentric coordinates for triangles, bilinear s/t for quads, and average weights for polygons.
  • Nearest edge & vertex: Located on the source mesh (pre-modifier geometry), including the nearest edge (with t parameter) and vertex.
  • UV & coordinates: Extracts UV, local coordinates (mm), world coordinates, and normals.
  • bpy location path: Generates bpy code that can be executed directly in Blender, e.g. me = bpy.data.objects["Body"].data; me.polygons[5].

Supported targets include points, faces, edges, vertices, and objects. Edges and vertices snap to source edges/vertices and are highlighted, while faces and objects highlight the corresponding surface.

Annotation Editing & Sending

  • Sketch: Opens the annotation editor in the current view, supporting drawing of rectangles, circles, arrows, and text. Annotation point numbers are burned into the image.
  • Send to chat: Writes all annotations (selectors, parameters, coordinates, bpy paths, comments) into the conversation editor and attaches an annotated screenshot. Each annotation contains a machine-readable dsh.blender.annotation.v1 JSON block recording the source path/version/cache key, evaluated surface position, and comments.
  • State management: Annotations are stored per file in the browser and are marked as stale when the file changes. Stale annotations remain in the list but are not drawn or highlighted in the view; they must be re-validated before editing.
  • Shape keys & instances: Default weights (including sparse glTF morph accessors) are displayed. Geometry Nodes instances are exported, with each copy including a node index/path in the evaluated surface reference.

Identity Tracking Under Modifiers

Before export (in a background Blender session, without saving the file), the plugin writes integer attributes _dsh_face, _dsh_vert, and _dsh_src to writable meshes. These attributes propagate through modifiers such as Bevel, Subsurf, Mirror, Array, Solidify, and Boolean, and are preserved via the glTF exporter’s export_attributes=True setting.

Shared meshes from boolean operations are given private in-memory copies to ensure unique cutter provenance. The source file remains unchanged.

If source identity cannot be determined, the successfully picked surface point still retains the evaluated triangle and barycentric coordinates, pinning the reference to that specific export version. Source face index and the nearest pre-modifier edge/vertex serve as supplementary context. Source projection proximity is labeled as exact (within the 2% source face radius tolerance of the resolver), modified-surface, or modifier-copy.

Installation & Activation

The plugin requires DeepSeek Harness 0.2.x and Blender 3.6+ (tested environment: Blender 4.2.23 LTS on macOS).

Installation method 1: Using the pre-built tarball (no build step required):

dsh plugin --profile <profile> add https://github.com/iimaguest/dsh-blender-annotate/releases/latest/download/dsh-blender-annotate.tgz

Installation method 2: Install directly from GitHub:

dsh plugin --profile <profile> add github:iimaguest/dsh-blender-annotate

If checking out the source directly via link:, the installation may fail due to missing modules provided by DSH (such as @deepseek-ai/schemastery). A clean installation via the tarball is recommended.

After installation, if prompted with restart-required, please restart DeepSeek Harness. The plugin will appear in the awesome-dsh-plugin catalog for use with dsh-market.

Typical Workflow

  1. Open a document containing a Blender scene in DSH.
  2. In the file preview on the right sidebar, enable “Annotate” mode.
  3. Click the location you want to annotate on the model, e.g., face #5 on the outer left leg.
  4. If you need to draw an arrow pointing to a specific feature, click “Sketch” and draw on the view.
  5. Click “Send to chat” — the plugin will write the annotation content, coordinates, bpy path, and screenshot into the conversation, enabling the AI to accurately understand the model details.

Use Cases & Caveats

Ideal for developers or designers who need to describe 3D model details to an AI, such as:
- Marking problem faces or structural features during design reviews.
- Providing precise model references to an AI assistant for subsequent parameter adjustments or script generation.

Caveats:
- The plugin runs with the permissions of the current DSH process. Review the source code and license before installing.
- Textures, bone skinning, and animation playback are not implemented. Only static shape key blending and Geometry Nodes instance export are supported.
- Node/triangle references are based on the export cache key. Annotations will not automatically re-attach after topology changes.

Summary

dsh-blender-annotate provides precise Blender model annotation capabilities on DSH’s preview component, supporting multi-dimensional information extraction for points, faces, edges, vertices, and objects, and reducing interaction overhead through structured JSON and bpy paths. For developers who frequently interact with 3D models, it offers a controllable and traceable annotation solution.

  • Plugin homepage: https://www.skillhub.cn/plugins/iimaguest/dsh-blender-annotate
  • Source repository: https://github.com/iimaguest/dsh-blender-annotate
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye