MCA Editor in Blender¶
MCA Editor runs inside Blender as an extension. It docks into a Blender area, runs your code in Blender's own Python, and shows Blender's output next to yours.
New to it? See Installation.
Opening and docking¶
Open it from Window > MCA Editor (choose it again to close it). If it was open when Blender closed, it reopens automatically.
Docking in an area¶
Blender areas have no tabs, so MCA Editor docks into a Text Editor area:
- Open a Text Editor area where you want the editor (split an area, or change an existing one's editor type)
- In that area choose View > Dock MCA Editor Here
The editor fills that area and follows it when you resize, split or join areas. The spot is saved with your layout and your .blend file, so it comes back in the same place.
Blender's own menus and popups still open on top of the docked editor. Click inside the editor to type in it; click anywhere in Blender to go back to Blender.
Rearranging areas
In Blender 4.3 and newer you can drag an area by its corner to move it: drag to dock it somewhere else, Ctrl+drag to swap two areas, and Shift+drag to pull it out into its own window.
Floating window¶
Prefer a separate window? In the editor's menu bar choose Blender > Float Window. The editor becomes its own window that stays in front of Blender. Blender > Dock in Blender puts it back in its area.
Running code¶
Code runs directly in Blender's Python, on Blender's main thread, in the same namespace as Blender's Python Console. bpy and anything else you've imported is there to use:
A single expression shows its value in the output panel:
Python Console sync¶
MCA Editor and Blender's Python Console areas stay in sync both ways:
- What you type in the Python Console, and its output and errors, shows up in MCA Editor's output panel
- Code you run in MCA Editor, and its output and errors, shows up in every open Python Console (scripts longer than 12 lines show as a one-line summary)
Turn it off or on with Blender > Sync with Python Console in the editor's menu bar.
Operator log¶
Like Blender's Info editor, the output panel shows the bpy.ops... command for each operator you run in Blender: adding a cube, applying a modifier, changing a mode. Copy a line into your script to repeat that step. Turn it off with Blender > Show Operator Log. It shows when Show Blender Output is set to Everything.
Blender's output¶
The output panel also shows everything Blender prints to its system console, from the moment the extension loads: Python output from other add-ons and handlers, and Blender's own messages. You still see it all in Blender's system console (Window > Toggle System Console) too.
Choose how much you want from Blender > Show Blender Output:
| Setting | Shows |
|---|---|
| Everything | All output (the default) |
| Warnings and errors | Lines that look like warnings or errors |
| Errors only | Just errors |
| Off | Only your own output |