BlenderExec for VS Code
Supercharge your Blender Python development with IntelliSense, hot-reload, and seamless script execution.
BlenderExec provides syntax highlighting, snippets, and full auto-completion powered by Blender Python API stubs (from fake-bpy-module) — plus commands for sending scripts directly to a running Blender instance.
-
📦 Bundled Blender API Stubs
Provides IntelliSense, type hints, and docstrings for Blender’s Python API.
(Stubs are generated using fake-bpy-module.) -
⚡ Auto-Enable IntelliSense
Automatically injects the Blender API stub path intopython.analysis.extraPathswhen opening a Python file in a workspace. -
🛠 Manual Command Support
Enable Blender IntelliSense on demand via
BlenderExec: Enable Blender API IntelliSense. -
🚀 Direct Script Execution
Send your Python scripts or selections from VS Code directly to a running Blender instance. -
🔄 Hot-Reloadable Development
Instantly test scripts in Blender without restarting, perfect for fast iteration.
| Command | Description |
|---|---|
BlenderExec: Select Blender Instance |
Select a running Blender instance to target for script execution. |
BlenderExec: Send Full File to Blender |
Sends the current .py file to Blender for execution. |
BlenderExec: Send Selection to Blender |
Sends only the currently selected code to Blender. |
BlenderExec: Enable Blender API IntelliSense |
Injects the Blender API stub path into workspace settings. |
| Keybinding | Action |
|---|---|
Ctrl+Alt+E |
Select Blender Instance |
Ctrl+Shift+E |
Send Full File to Blender |
Ctrl+Shift+S |
Send Selection to Blender |
Ctrl+Alt+Shift+B |
Enable Blender API IntelliSense |
Before using script execution features, install the BlenderExec Bridge addon in Blender:
- Download: BlenderExec.Bridge.Addon.zip
- In Blender:
Edit→Preferences→Add-ons→Install...→ Select the zip → Enable addon
Run BlenderExec: Enable Blender API IntelliSense (Ctrl+Alt+Shift+B).
This automatically injects the bundled Blender stubs into VS Code, giving you full autocomplete and type hints.
⚠ Works only inside a workspace folder. Single-file editing without a workspace will not enable IntelliSense.
Run BlenderExec: Select Blender Instance (Ctrl+Alt+E) to choose which Blender process will receive scripts.
Multiple Blender instances? No problem — just select the desired one from the list.
- Full File:
BlenderExec: Send Full File to Blender(Ctrl+Shift+E) - Selection Only:
BlenderExec: Send Selection to Blender(Ctrl+Shift+S)
Your code executes immediately inside Blender’s Python environment.
Perfect for rapid testing and iterative development.
-
Stub Path Injection
On activation or when opening a Python file, BlenderExec injects the bundled stubs intopython.analysis.extraPaths. -
Instance Management
Detects running Blender instances and lets you pick one as the execution target. -
Script Execution
Sends the full file or selection to Blender using a TCP/IPC-based connection for immediate execution.
- Blender installed on your system (any recent version supported by fake-bpy-module).
- VS Code 1.60.0+
- Python extension (Pylance) for IntelliSense.
- BlenderExec Bridge Addon installed in Blender for script execution.
To send code from VS Code to Blender, you need to install the BlenderExec Bridge addon:
- Download the addon: BlenderExec.Bridge.Addon.zip
- Install in Blender:
- Open Blender →
Edit→Preferences→Add-ons - Click
Install...and select the downloaded.zipfile - Enable the BlenderExec Bridge addon
- Open Blender →
📥 Latest Release: Release
🏪 VS Code Marketplace: BlenderExec Extension
🔗 Source Code: BlenderExec Bridge
- ❌ No IntelliSense: Ensure your workspace is a folder (not just a single
.pyfile). - ⚠ Wrong stub path: Run
BlenderExec: Enable Blender API IntelliSense. - 🔄 Scripts not executing: Ensure you have selected a running Blender instance.
Special thanks to:
- Blender Foundation for creating an amazing open-source 3D suite.
- nutti/fake-bpy-module for the Blender API stubs used in IntelliSense.
BlenderExec wouldn’t exist without their incredible work. 💙