본문으로 건너뛰기
S

dsh-houdini-vex

sulbon/dsh-houdini-vex

Offline Houdini VEX reference in the sidebar: 818 functions with bilingual notes and examples, searchable by name, category and tag.

설치

dsh plugin --profile web add github:sulbon/dsh-houdini-vex

README

Houdini VEX 速查 · dsh-houdini-vex

在 DeepSeek Harness 侧边栏里离线查询 Houdini VEX 函数。数据来自 SideFX 官方文档,整理为 818 个函数、29 个分类,全部带中英双语说明,并为每个函数准备了至少一条示例。

Houdini VEX 速查界面

实际界面:左侧函数列表,右侧签名、说明与示例。

功能

  • 搜索函数名、分类、标签、中英文摘要;支持多关键词、/ 或 Ctrl/Cmd+K 聚焦、方向键选择、Enter 打开。
  • 详情页显示签名、逐段说明、参数、返回值、官方文档链接、相关函数。
  • 示例带语法高亮和复制按钮;官方示例与 AI 生成示例有明确徽章区分。
  • 可切换显示英文原文;中文说明与英文说明同时保存在数据里。
  • 所有数据在本地 data/functions.json,断网可用,不上传任何查询内容。

安装

从开放插件市场安装(收录后):

  1. 在 DSH 中打开「插件 → 发现」或「插件 → 开放市场」。
  2. 搜索 Houdini VEX 或 dsh-houdini-vex。
  3. 安装后重启 / 刷新 DSH,点击侧边栏的 VEX 图标。

从 GitHub 安装:

dsh plugin --profile desktop add "git+https://github.com/sulbon/dsh-houdini-vex.git#main"

本地开发安装:

dsh plugin --profile desktop add "D:/tan/HoudiniVexDoc"

安装后如果侧边栏没有出现,重启 DSH 再刷新页面。

数据

data/functions.json 是唯一的运行时数据文件:

  • 818 个函数,29 个分类
  • 818 条中文摘要 / 逐段说明 / 参数说明
  • 823 条示例:官方 21 条,AI 生成 802 条
  • 每条记录包含 summary.zh/en、description[].zh/en、arguments[].zh/en、returns.zh/en、examples[]、related、tags、官方 URL

source: "official" 的示例来自 SideFX 文档;source: "generated" 的示例由 AI 生成,用于快速上手,参数或函数可用性可能随 Houdini 版本变化。

仓库还保留了英文中间数据、翻译批次和合并脚本,方便排查与重建。data/raw/ 是本地抓取缓存,不纳入版本库。

排除的分类:BSDFs、CHOP、Channel Primitives、Crowds、Fuzzy Logic、Image Processing、light、Open Color IO、particles、Shading and Rendering、Tetrahedrons。

重新生成

# 1. 抓取(仅缺失页面;--force 全量重抓;--parse 只解析本地缓存)
python scripts/scrape.py
python scripts/scrape.py --parse

# 2. 生成翻译批次(已生成的批次会自动跳过)
python scripts/make_batches.py

# 3. 把 data/translated/batch_*.json 合并成 data/functions.json
python scripts/build_data.py

# 4. 校验
python scripts/check_batches.py
python scripts/check_vex.py --limit 50

翻译和示例由 DSH 子代理按 data/batches/INSTRUCTIONS.md 的 schema 生成。check_vex.py 会尝试用本机 Houdini 的 vcc 编译示例;Houdini 19 不支持的新函数会按版本差异跳过。

插件结构

  • index.js:Host 侧,注册 /houdini-vex/api/index、/houdini-vex/api/function?id=、/houdini-vex/api/health,并通过 connection.requestRejection 接入 DSH 的浏览器鉴权。
  • client.js:Client 侧,注册 sidebar.panellist 入口与 main 面板。
  • cordis.patch.yml:bundle 插入声明。
  • package.json:dsh.bundle / dsh.client 清单。

兼容性

  • DSH >=0.1.7-rc.1 <0.3.0
  • 在 DSH 0.2.x / Windows 上开发和验证

许可证

插件代码使用 MIT 许可证。函数说明整理自 SideFX 官方文档,相关文档版权归 Side Effects Software;详见 NOTICE.md。本项目与 Side Effects Software 无隶属关系。

관련 플러그인