Skip to content

Code Lab

CLI-Anything Explained: How Agents Build Blender Scenes through Commands

By Miles Park·
GitHub preview of HKUDS/CLI-Anything, Inspect agent-ready software commands and the Blender scene model.

CODE LAB · PROJECT SPOTLIGHT

CLI-Anything Apache-2.0

Inspect agent-ready software commands and the Blender scene model.

Preview: GitHub · HKUDS/CLI-Anything

A Blender task becomes easier to inspect when the agent can express it as commands and structured scene data. CLI-Anything builds command-line harnesses around applications so an agent can create, inspect, and revise work through a defined interface. Its Blender example makes a useful case study. We followed the scene model from a named render profile to the JSON values that later stages use.

Follow the creator’s orbital relay demo

CLI-Anything creator demo showing an agent build trace beside Blender previews of an orbital relay drone.
HKUDS’s public Blender demo pairs the agent’s build steps with successive rendered previews. The preview belongs to the creator’s run. Creator image source.

Read the build trace on the left and compare the preview stages on the right. A base platform appears before the more detailed object. The image helps explain why preview-and-revise matters. A command can complete while leaving a shape, camera angle, or composition that needs another pass. The creator publishes the full animated sequence externally. Open the creator’s demos.

Run a small scene-creation example

The Blender harness separates a JSON project from the final rendering work. We ran the pinned core scene module in isolation with the Python standard library. The call below creates a scene named Relay preview using the preview profile. It needs the repository checkout, but this particular function does not require a running Blender instance.

git clone https://github.com/HKUDS/CLI-Anything.git
cd CLI-Anything
git checkout 34f519533bc175d2fe287ab8316b0dd99bb9cc43
python -c "import runpy; m=runpy.run_path('blender/agent-harness/cli_anything/blender/core/scene.py'); p=m['create_scene'](name='Relay preview', profile='preview'); print(p['render']['engine'], p['render']['resolution_x'], p['render']['resolution_y'], p['render']['samples'])"
# Observed local output
# EEVEE 960 540 16

The output is a compact description of the render setup. EEVEE is the selected engine identifier, 960 × 540 is the configured image size, and 16 is the sample count. The returned dictionary also contains object, material, camera, light, and collection lists. We checked the resulting scene values. Rendering the creator’s drone or exporting a .blend file requires further application work and was outside this test.

Inspect how the profile reaches the scene

HKUDS/CLI-AnythingPython · source excerpt
Py  blender/agent-harness/cli_anything/blender/core/scene.py
69    if profile and profile in PROFILES:70        p = PROFILES[profile]71        resolution_x = p["resolution_x"]72        resolution_y = p["resolution_y"]73        engine = p["engine"]74        samples = p["samples"]75        fps = p["fps"]7677    if engine not in ("CYCLES", "EEVEE", "WORKBENCH"):78        raise ValueError(f"Invalid render engine: {engine}. Use CYCLES, EEVEE, or WORKBENCH.")79    if resolution_x < 1 or resolution_y < 1:80        raise ValueError(f"Resolution must be positive: {resolution_x}x{resolution_y}")
Lines 69–80 · commit 34f5195View original on GitHub ↗

Source credit: HKUDS/CLI-Anything. Apache-2.0 license and copyright notices.

When a profile name matches an entry in PROFILES, its resolution, engine, samples, and frame rate replace the function defaults. Validation follows before the project dictionary is returned. This gives an agent a stable starting point. A quick preview can use a smaller configuration, while a later delivery step can choose settings suited to the final image. Check the application and harness documentation for current engine compatibility.

Move from a data check to an application workflow

Begin with the Blender harness README and its installation requirements. Use a disposable scene, confirm the supported commands, and first create an object you can recognize, such as a cube on a plane with one camera. Save the project, inspect its state, render a preview, and then change one property. Compare the new image with the previous one. This keeps each command tied to an observable result. Pinned Blender harness instructions.

The same approach is useful for other applications in the repository, but each harness has its own dependencies and coverage. A successful JSON scene check establishes that the scene constructor processed the input correctly. The final visual result still needs the relevant application and a preview.

For agents that inspect desktop interfaces, read agent-desktop. For Blender asset workflows, continue with Tripo Studio MCP. For a local media pipeline controlled by commands, see ffmpeg-skill.

Join the discussion

Your email address will not be published. Required fields are marked *