Skip to content

Dev Notes Windows

Xavier Loux edited this page Jun 9, 2026 · 1 revision

Setup

Create environment for windows

Open PowerShell 7 and run the following commands:

py -m venv C:\venvs\blender_for_unrealengine
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
C:\venvs\blender_for_unrealengine\Scripts\Activate.ps1

Install fake bpy module (Blender API)

cd C:\venvs\blender_for_unrealengine\Scripts
python.exe -m pip install --upgrade pip
python.exe -m pip install fake-bpy-module-latest
python.exe -m pip install --upgrade fake-bpy-module-latest

Install Unreal Engine Python API

  • Open Unreal Engine
  • Edit → Project Settings → Plugins → Python
  • Enable Developer Mode in Python -> Advanced
  • Restart Unreal Engine (This will generate the Python API stubs in <UnrealProjectPath>\Intermediate\PythonStub\unreal.py)
  • Copy the generated stubs from <UnrealProjectPath>\Intermediate\PythonStub\unreal.py to C:\venvs\blender_for_unrealengine\Lib\site-packages

Set VSode Python interpreter

In VSCode, press Ctrl+Shift+P, then select Python: Select Interpreter, and choose the interpreter located at C:\venvs\blender_for_unrealengine\Scripts\python.exe. Ctrl+Shift+P -> Python: Restart Language Server.

Best Practices

Clone this wiki locally