Show HN: BlenderQ – 用于管理多个 Blender 渲染任务的 TUI 工具

BlenderQ 是一个终端 UI (TUI) 工具,用于管理本地 Blender 渲染任务的队列。你可以将一批 .blend 文件添加到队列中,并在终端中监控它们的渲染进度。

⚠️ 仍在 Beta 阶段!:这个项目还处于早期阶段,可能存在 Bug 或者功能不完整。请报告你遇到的任何问题。

Demo

功能特性

前置条件

安装

使用 npm 或 pnpm 全局安装 BlenderQ CLI:

npm install -g blenderq
# 或者
pnpm add -g blenderq

使用方法

Usage: blenderq [options]
Options:
 -V, --version      output the version number
 -z, --skip-splash    Skip splash screen
 -d, --dir <dir>     Set the directory to start in
 -b, --blend <blend...> Set the blend files to open
 -h, --help       display help for command

为什么选择 Node.js 而不是 Python 或 Go?

我选择 Node.js (TypeScript) 的主要原因是它是我最擅长的领域,而且我需要快速交付一个功能完备且易于维护的 TUI。Python 和 Go 也是有吸引力的选择,但它们缺少与我的需求相匹配的预构建组件,这将大大增加开发时间。此外,Ink 中受 React 启发的编程模式使 Node.js 在构建清晰、响应迅速的终端 UI 方面特别有吸引力。虽然将来我可能会探索使用 Python 与 Blender 进行更直接的集成,但 Node.js 使我能够高效地交付一个现在就能正常工作的工具。

示例

将一组 .blend 文件添加到队列

blenderq --blend /path/to/file1.blend /path/to/file2.blend

手动从目录中搜索 .blend 文件

blenderq --dir /path/to/directory