Communitygithub.com

cli-anything-blender

Blenderシーン編集のためのステートフルCLI。JSONシーン記述形式とbpyスクリプト生成により、AIエージェントが3Dシーンをプログラム的に操作できます。

cli-anything-blender とは?

cli-anything-blender は、GIMP CLI ハーネスと同様のパターンに従ったステートフルなコマンドラインインターフェースで、AIエージェントや開発者がBlenderの3Dシーン編集をプログラム的に実行できるようにします。このツールはJSON形式のシーン記述と、実際のレンダリングのためのbpy(Blender Python API)スクリプト生成を組み合わせています。REPLモード、アンドゥ/リドゥ履歴(最大50レベル)、プロジェクトのJSON保存/読み込み、プレビューキャプチャ(EeveeやWorkbenchレンダリング)などの機能を備え、AIエージェントによる視覚的チェックポイント取得をサポートします。非対話型の自動化には `--json` フラグでマシンリーダブルな出力を、人間にはカラー表示や表形式の出力を提供。オブジェクト、マテリアル、カメラ、ライト、アニメーション、レンダリング設定など、Blenderの主要機能を網羅したコマンドグループを備え、`preview live` でライブプレビューセッションを管理できます。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/HKUDS/CLI-Anything/tree/main/skills/cli-anything-blender

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

cli-anything-blender は何をしますか?

GIMP CLIハーネスと同じパターンに従った、ステートフルな3Dシーン編集用コマンドラインインターフェース。実際のBlenderレンダリングにはbpyスクリプト生成とともにJSONシーン記述形式を使用します。

インストール

このCLIはcli-anything-blenderパッケージの一部としてインストールされます:

pip install cli-anything-blender

前提条件:

  • Python 3.10+
  • blender(>= 4.2)がシステムにインストールされていること

使用法

基本コマンド

# ヘルプを表示
cli-anything-blender --help

# 対話型REPLモードを開始
cli-anything-blender

# 新しいシーンプロジェクトを作成
cli-anything-blender scene new -o scene.blend-cli.json

# JSON出力で実行(エージェント向け)
cli-anything-blender --json --project scene.blend-cli.json scene info

REPLモード

サブコマンドなしで起動すると、対話型REPLセッションが開始されます:

cli-anything-blender
# タブ補完と履歴機能付きで対話的にコマンドを入力

コマンドグループ

Scene

シーン管理コマンド。

コマンド説明
new新しいシーンを作成
open既存のシーンを開く
save現在のシーンを保存
infoシーン情報を表示
profiles利用可能なシーンプロファイルを一覧表示
json生のシーンJSONを出力

Object Group

3Dオブジェクト管理コマンド。

コマンド説明
add3Dプリミティブオブジェクトを追加
removeインデックスでオブジェクトを削除
duplicateオブジェクトを複製
transformオブジェクトを変形(移動、回転、拡大縮小)
setオブジェクトのプロパティを設定(名前、可視性、位置、回転、スケール、親)
listすべてのオブジェクトを一覧表示
getオブジェクトの詳細情報を取得

Material

マテリアル管理コマンド。

コマンド説明
create新しいマテリアルを作成
assignマテリアルをオブジェクトに割り当て
setマテリアルのプロパティを設定(色、メタリック、粗さ、スペキュラー、アルファなど)
listすべてのマテリアルを一覧表示
getマテリアルの詳細情報を取得

Modifier Group

モディファイア管理コマンド。

コマンド説明
list-available利用可能なすべてのモディファイアを一覧表示
infoモディファイアの詳細を表示
addオブジェクトにモディファイアを追加
removeインデックスでモディファイアを削除
setモディファイアのパラメータを設定
listオブジェクト上のモディファイアを一覧表示

Camera

カメラ管理コマンド。

コマンド説明
addシーンにカメラを追加
setカメラのプロパティを設定
set-activeアクティブカメラを設定
listすべてのカメラを一覧表示

Light

ライト管理コマンド。

コマンド説明
addシーンにライトを追加
setライトのプロパティを設定
listすべてのライトを一覧表示

Animation

アニメーションとキーフレームコマンド。

コマンド説明
keyframeオブジェクトにキーフレームを設定
remove-keyframeオブジェクトからキーフレームを削除
frame-rangeアニメーションのフレーム範囲を設定
fpsアニメーションのFPSを設定
list-keyframesオブジェクトのキーフレームを一覧表示

Render Group

レンダリング設定と出力コマンド。

コマンド説明
settingsレンダリング設定を構成
info現在のレンダリング設定を表示
presets利用可能なレンダリングプリセットを一覧表示
executeシーンをレンダリング(bpyスクリプトを生成)
scriptレンダリングせずにbpyスクリプトを生成

Preview

実際のプレビューバンドルキャプチャとライブプレビューセッションコマンド。

コマンド説明
preview recipes利用可能なプレビューレシピを一覧表示
preview captureアクティブシーンの実際のプレビューバンドルをレンダリング
preview latest最新の既存プレビューバンドルを返す
preview live startライブプレビューセッションを開始し、最初のバンドルを公開
preview live pushライブセッションに更新されたバンドルを公開
preview live statusレンダリングせずに現在のライブセッション状態を読み取る
preview live stopアーティファクトを削除せずにライブセッションを停止

レシピ quick の一般的なバンドルアーティファクト:

  • hero.png:実際のEeveeプレビューレンダリングから
  • workbench.png:実際のBlender Workbenchレンダリングから

ライブセッションの永続化:

  • session.json:可変のヘッドとして
  • 不変のバンドルディレクトリ
  • trajectory.json:追記専用のコマンド→プレビュー履歴として

ビューア側:

  • cli-hub previews inspect <bundle-or-session>
  • cli-hub previews html <bundle-or-session> -o page.html
  • cli-hub previews watch <session-dir> --open
  • cli-hub previews open <bundle-or-session>

Session

セッション管理コマンド。

コマンド説明
statusセッションステータスを表示
undo最後の操作を元に戻す
redo最後に元に戻した操作をやり直す
historyアンドゥ履歴を表示

例

新しいプロジェクトを作成

新しいBlenderシーンプロジェクトファイルを作成。

cli-anything-blender scene new -o myscene.blend-cli.json
# またはプログラム的な使用のためにJSON出力
cli-anything-blender --json scene new -o myscene.blend-cli.json

対話型REPLセッション

アンドゥ/リドゥ対応の対話型セッションを開始。

cli-anything-blender
# 対話的にコマンドを入力
# 利用可能なコマンドを表示するには 'help'
# 履歴ナビゲーションには 'undo' と 'redo'

状態管理

CLIは以下のセッション状態を維持します:

  • アンドゥ/リドゥ:最大50レベルの履歴
  • プロジェクトの永続化:JSONとしてプロジェクト状態を保存/読み込み
  • セッション追跡:変更や修正を追跡

出力形式

すべてのコマンドはデュアル出力モードをサポート:

  • 人間可読(デフォルト):表、色付き、フォーマット済みテキスト
  • 機械可読(--json フラグ):エージェント向けの構造化JSON
# 人間向け出力
cli-anything-blender --project scene.blend-cli.json scene info

# エージェント向けJSON出力
cli-anything-blender --json --project scene.blend-cli.json scene info

プレビューワークフロー

エージェントが信頼性のある視覚的チェックポイントを必要とする場合は、Blenderプレビューを使用します:

# プレビューレシピを一覧表示
cli-anything-blender --project scene.blend-cli.json preview recipes

# 実際のプレビューバンドルをキャプチャ
cli-anything-blender --json --project scene.blend-cli.json preview capture --recipe quick

# ライブプレビューループを開始
cli-anything-blender --json --project scene.blend-cli.json preview live start --recipe quick --mode poll --source-poll-ms 500

# レンダリングせずに現在のライブヘッドを照会
cli-anything-blender --json --project scene.blend-cli.json preview live status --recipe quick

エージェントの場合、preview capture --json はバンドルメタデータとアーティファクトファイルパスを返します。preview live status --json はセッションメタデータとコンパクトな trajectory_summary を返します。

AIエージェント向け

このCLIをプログラム的に使用する場合:

  1. 常に --json フラグを使用 して解析可能な出力を得る
  2. リターンコードを確認 - 0は成功、非0はエラー
  3. 失敗時はstderrを解析 してエラーメッセージを取得
  4. 必須:すべてのファイル操作に絶対パスを使用(レンダリング、プロジェクトファイル)。相対パスはバックグラウンド実行で失敗しやすいです。
  5. 視覚的確認には preview capture または preview live ... を使用。JSONだけでシーンの品質を推測しないでください。
  6. 返されたアーティファクトパスを読み取る(hero.png や workbench.png など)。JSONペイロードはファイルを参照し、画像バイトをインライン化しません。
  7. _bundle_dir は1つのスナップショットとしてのみ扱う。安定したライブ履歴には _session_dir と _trajectory_path を使用します。
  8. cli-hub previews ... は既存のプレビューの検査/オープンにのみ使用。プレビュー生成自体は常に cli-anything-blender preview ... を通じて行われます。

詳細情報

  • 完全なドキュメント:パッケージ内のREADME.mdを参照
  • テストカバレッジ:パッケージ内のTEST.mdを参照
  • 方法論:cli-anything-plugin内のHARNESS.mdを参照

バージョン

1.0.0

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

cli-anything-adguardhome

>-

cli-anything-anygen

>-

cli-anything-audacity

>-

cli-anything-browser

Browser automation CLI using DOMShell MCP server. Maps Chrome

cli-anything-calibre

>-

cli-anything-ccswitch

CLI interface for CC Switch — manage AI coding tool configurations from the terminal

cli-anything-chromadb

>-

cli-anything-cloudanalyzer

Command-line interface for CloudAnalyzer — Agent-friendly harness for CloudAnalyzer, a QA platform for mapping, localization, and perception outputs. Supports 27 commands across 8 groups: point cloud evaluation, trajectory evaluation, ground segmentation QA, config-driven quality gates, baseline evolution, processing, visualization, and interactive REPL.

cli-anything-cloudcompare

Command-line interface for CloudCompare — Agent-friendly harness for CloudCompare, the open-source 3D point cloud and mesh processing software. Supports 41 commands across 9 groups: project management, session control, point cloud operations (subsample, filter, segment, analyze), mesh operations, distance computation (C2C, C2M), transformations (ICP, matrix), export (LAS/LAZ/PLY/PCD/OBJ/STL/E57), and interactive REPL.

cli-anything-comfyui

>-

cli-anything-dify-workflow

Wrapper for the Dify workflow DSL CLI. Create, inspect, validate, edit, and export Dify workflow files through a CLI-Anything harness.

cli-anything-drawio

>-

cli-anything-eez-studio

Use EEZ Studio from the command line: inspect and modify native .eez-project files, edit LVGL screens/widgets, manage SCPI commands, and invoke the real EEZ Studio backend for LVGL builds.

cli-anything-eth2-quickstart

>-

cli-anything-exa

>-

cli-anything-firefly-iii

Firefly III CLI - Personal finance management via CLI-Anything

cli-anything-freecad

Complete CLI harness for FreeCAD parametric 3D CAD modeler (258 commands). Covers ALL workbenches: Part (29 primitives + boolean + mirror + loft + sweep), Sketcher (26 cmds: geometry + constraints + editing), PartDesign (38 cmds: pad/pocket/groove/fillet/chamfer/patterns/hole/datum), Assembly (11 cmds), Mesh (16 cmds), TechDraw (15 cmds: views + dimensions + PDF/SVG), Draft (33 cmds: 2D shapes + arrays + transforms), FEM (12 cmds), CAM/CNC (10 cmds), Surface (6 cmds), Spreadsheet (7 cmds), Import (13 formats), Export (17 formats), Measure (12 cmds), Materials (21 presets). Headless FreeCAD export to STEP/IGES/STL/OBJ/DXF/PDF/glTF/3MF.

cli-anything-gimp

>-

cli-anything-godot

>-

cli-anything-inkscape

>-

関連スキル