Sub topic 13
Customizing and creating your own workspace
This chapter shows you how to turn a built-in workspace into a layout that suits your own workflow. It then covers how to save that layout and how to script the same steps.
It assumes you have read the earlier chapters on workspaces and on how workspaces and modes work together. You should know that a workspace is a saved arrangement of editors, and that a workspace can switch the active object into a given mode when you open it. You should also be comfortable with the 3D Viewport, Outliner, and Properties editor. The last section needs basic Python.
What a workspace stores
A workspace is a named layout. Each tab at the top of the window is one workspace. A workspace remembers these things:
- The arrangement of areas (the rectangular regions of the window) and the editor type shown in each.
- The view settings inside each area, such as the 3D Viewport's shading mode, overlays, and camera angle.
- The object mode it switches to when you activate it (for example Object, Edit, or Sculpt Mode).
- The active tool for each mode.
- An optional pinned scene.
A workspace does not store your scene data. Meshes, materials, and objects live in the file's scenes and are shared by every workspace. Changing the layout never changes your models.
Starting from an existing layout
Pick the closest built-in workspace as your starting point. You can create a new tab in two ways.
- Click the + button at the right end of the workspace tabs. The menu offers Duplicate Current, a General group, and templates such as 2D Animation, Sculpting, VFX, and Video Editing.
- Right-click an existing tab and choose Duplicate.
Duplicating is usually the better choice. The copy keeps every editor setting, so you only change what bothers you. The template entries add a fresh workspace with that template's layout and mode.
Double-click a tab to rename it. Drag a tab left or right to reorder it. You can also switch workspaces from the keyboard with Ctrl+Page Up and Ctrl+Page Down. A short tab order lets you reach any workspace in one or two key presses.
Reshaping the layout
Once you have a copy, reshape its areas.
- Change an editor type. Open the editor-type menu at the left end of an area header and choose another editor. This is how you turn a spare area into an Outliner, a Spreadsheet, or a Text Editor.
- Resize areas. Drag the border between two areas.
- Split an area. Use View > Area > Vertical Split or Horizontal Split, then click where you want the division. You can also drag from an area's corner.
- Join areas. Drag a corner of one area over its neighbor. The neighbor is removed.
- Maximize temporarily. Ctrl+Space expands the area under the mouse and toggles back. This is a view state, not a layout change you need to undo.
Inside the 3D Viewport you can also set shading, overlays, gizmos, and the position of the toolbar and sidebar. These belong to the area, so each workspace can keep different settings. A modeling workspace can show wireframe overlays while a layout workspace shows a clean solid view.
Setting the workspace's mode
Open the Properties editor, go to the Tool tab, and find the Workspace panel. Its Mode setting names the object mode that Blender enters when you activate this workspace. Set it to Edit Mode on a cleanup workspace, and the selected mesh is ready to edit as soon as you click the tab.
Two points are easy to miss:
- The setting only applies when you activate the workspace. If you change modes by hand afterward, Blender does not force the mode back.
- A mode only applies when the active object supports it. If the active object is a camera, a workspace set to Edit Mode has no mesh to edit, and the mode does not change.
The same panel has Pin Scene. With it enabled, activating the workspace also switches the window to that scene. This is useful when one file holds a modeling scene and a separate render or compositing scene.
Keeping your workspace
Where a workspace lives decides whether you see it again. There are three common cases.
| Goal | What to do |
|---|---|
| Keep it in this file | Save the `.blend` file. The workspace is stored in it. |
| Use it in every new file | Choose **File > Defaults > Save Startup File**. Blender then starts with this layout. |
| Copy it into another existing file | Use **File > Append**, open the source `.blend`, enter its **WorkSpace** folder, and pick the workspace. |
When you open a file, the Load UI option decides whether Blender applies that file's layout or keeps your current one. If your custom tab seems to be missing after opening a file, check whether Load UI was off.
The following diagram shows a typical customization pass.
Deleting and cleaning up
Right-click a tab and choose Delete to remove a workspace. The scene data is not affected. If you delete the workspace you are currently using, Blender switches to a neighboring one. Unused built-in workspaces can be deleted from a file to keep the tab bar short. You can recover them by appending them from a file that still has them, or by loading factory settings.
Doing it from Python
The workspace operations also work from the Text Editor. This script duplicates the current workspace, renames it, and sets the mode it will switch to.
import bpy
source = bpy.context.window.workspace
print("Duplicating:", source.name)
bpy.ops.workspace.duplicate()
# After duplication, the window shows the new workspace.
new_ws = bpy.context.window.workspace
if new_ws != source:
new_ws.name = "My Cleanup"
new_ws.object_mode = 'EDIT' # mode applied when this workspace is activated
print("Created:", new_ws.name, "->", new_ws.object_mode)
else:
print("The window did not switch to the new workspace; check the tab bar.")
print([ws.name for ws in bpy.data.workspaces])Run it a second time and Blender gives the new workspace a numeric suffix such as My Cleanup.001, because workspace names are unique within a file. Valid values for object_mode include 'OBJECT', 'EDIT', 'SCULPT', 'POSE', 'VERTEX_PAINT', 'WEIGHT_PAINT', and 'TEXTURE_PAINT'.
To change which workspace is active without creating one, assign to the window, as you saw in the earlier scripting section:
import bpy
target = bpy.data.workspaces.get("My Cleanup")
if target is not None:
bpy.context.window.workspace = targetLayout changes such as splitting areas are possible through the bpy.types.Screen and bpy.types.Area data. They are fragile and rarely worth scripting. Build the layout by hand and use Python for the mode and activation steps.
Common problems
- The tab opens in the wrong mode. Check the Mode setting in the Workspace panel of the Tool tab. Also check that the active object supports that mode.
- Settings seem to leak between workspaces. Scene settings and data are shared. Only area layout, view settings, mode, and tools are per-workspace. A modifier you add in one workspace appears in all of them.
- Your layout disappears in another file. Layouts live in the file or startup file where you saved them. Use Append or Save Startup File.
- The window looks cramped after a split. Use Ctrl+Space to maximize the area you are working in rather than deleting the layout.
Exercise
You duplicate the Modeling workspace, rename it "Cleanup", and set its Mode to Edit Mode in the Tool tab. You then select a camera and click the Cleanup tab. What mode is the camera in, and why? How would you make Cleanup available in every new file?
Show answer
The camera stays in Object Mode. A camera has no mesh data, so Edit Mode does not apply to it, and the workspace's mode setting is ignored for that object. To make Cleanup appear in every new file, arrange the scene as you want new files to start, then choose File > Defaults > Save Startup File. Alternatively, append the workspace into individual files from the WorkSpace folder of the .blend file that contains it.
Exercise
Write a short Python snippet that makes the workspace named "Sculpting" switch to Sculpt Mode when it is activated, without changing the active workspace.
Show answer
import bpy ws = bpy.data.workspaces.get("Sculpting") if ws is not None: ws.object_mode = 'SCULPT'