New in 2026.2
Python Editor registers Python scripts in a list, groups and tabs, and edits and runs them. The list, groups and tabs are saved, so they come back when Marvelous Designer restarts.
Open Python Editor
Location
Main Menu ▶ Edit ▶ Python Script
Operation
-
Select the menu in Location.
→ Python Editor appears as a docked panel of the main window. The list is empty the first time.
-
Click Open on the toolbar.
→ The Open Python Script window opens.
-
Select a .py file.
→ The file is registered in the Scripts panel and its code opens in the code area.
-
Edit the code.
→ A blue dot appears next to the tab name.
-
Click Save on the Source row.
→ The blue dot disappears and the status line shows "Saved <path>".
-
Click Run Script on the toolbar.
→ The run result is displayed in the console.
Options
| Option | Description |
| Side Bar (Ctrl + B) | Shows or hides the Scripts panel. |
| New | Creates a new script as a permanent tab. |
| Open | Opens .py files. You can select several files together. |
| Run Script | Runs the script in the tab you are viewing. Disabled when no tab is open or the code is empty. |
| Save | Saves the tab you are viewing. |
| Magnifier | Opens the Find panel. |
| Minimap button | Shows or hides the minimap. Displayed only when the script is long enough to scroll. |
| Clear (Ctrl + L) | Clears the console. |
📝 Note:
- Save saves the tab you are viewing, not the script selected in the list.
- Files that are not .py files or are larger than 2 MB are skipped without a notice.
The Scripts List
Operation
-
Enter a script name or group name in the search field above the Scripts panel.
→ Only matching rows are displayed. Collapsed groups expand while you search.
-
Click a section header (Pinned, a group name or No Group).
→ The section collapses or expands.
-
Click a row.
→ The row is selected and opens as a preview tab.
-
Double-click a row, or press Enter on it.
→ The script becomes a permanent tab and focus moves to the code area.
-
Ctrl-click or Shift-click to select several rows.
-
Drag a .py file from the file manager onto the list.
→ The file is registered in the list and opens as a preview tab.
-
Right-click a row, or click its ⋯ button.
→ The script menu appears.
Options
| Option | Description |
| Pin to Top / Unpin from Top | Moves the selected scripts into or out of the Pinned section. |
| Move to Group | Opens a submenu that lists the groups, No Group and New Group…. |
| Open in editor | Opens the script as a permanent tab and moves focus to the code area. Displayed when one script is selected. |
| Show in Explorer | Opens the folder that holds the file in the file manager. Disabled for a draft with no file. |
| Save / Save As | Saves the script, or saves it under another name and location. Displayed when one script is selected. |
| Duplicate | Creates copies of the selected scripts. |
| Rename | Edits the name of the row. Displayed when one script is selected. |
| Remove from List | Takes the selected scripts off the list. |
📝 Note:
- When you drop several files, all are registered and only the last one opens as the preview.
- Only .py files of 2 MB or less open.
Groups
Operation
-
Right-click a script and click Move to Group ▶ New Group….
→ The New Group window appears.
-
Enter a Group Name and click OK.
→ The group is created and the script moves into it.
-
Right-click a script and click Move to Group ▶ a group name or No Group.
→ The script moves to that group and leaves Pinned.
-
Drag a script onto a group header.
→ The script goes to the end of that group and the group expands.
-
Drag a group header above or below another group.
→ The group order changes.
-
Right-click a group header and click Rename Group, or press F2.
→ The group name turns into an input field.
-
Right-click a group header and click New Script.
→ A new script is created in the group.
-
Right-click a group header and click Remove Group.
→ The group is removed with no confirmation and its scripts move to No Group. The status line shows "Group removed. Scripts retained."
📝 Note:
- A group name can be up to 80 characters. An existing name, control characters, Pinned and No Group cannot be used.
- A group cannot hold another group.
Pinning
Operation
-
Select a script and right-click. With several rows selected, the action applies to all of them.
-
Click Pin to Top.
→ The script moves to the Pinned section.
or drag the script onto the Pinned header.
-
Right-click a script in the Pinned section and click Unpin from Top.
→ The script returns to its original group.
📝 Note:
- Rows have no Pin icon. Check whether a script is pinned by seeing if it is in the Pinned section.
- Using Move to Group, or dragging the script into a group section or the No Group section, clears the pin.
Managing Scripts
Operation
-
Click New on the toolbar.
→ A new script named Untitled-N opens as a permanent tab.
or press Ctrl + N, or click + on the tab strip.
-
Write some code and click Save on the Source row.
→ The Save Python Script window opens.
-
Choose a file name and location, then save.
-
Right-click a script and click Duplicate.
→ A copy named <source name>_copy opens. The copy is unsaved.
or press Ctrl + D.
-
Select a script and press F2.
→ The name of the row turns into an input field.
or right-click and click Rename.
-
Enter a new name and press Enter.
→ The file on disk is renamed and the status line shows "Renamed to <file name>".
-
Select a script and press Delete.
→ The script is taken off the list.
or right-click and click Remove from List.
📝 Note:
- Rename on a script with a file renames the file on disk. You cannot change only the name shown in the list.
- A file name must be 255 characters or fewer, end in .py, and not contain < > : " / \ | ? *. A name that already exists in the same folder is refused.
- Remove from List does not delete the .py file on disk. A confirmation appears once when an unsaved script is included.
Tabs and Saving
Operation
-
Click a script in the list.
→ An italic preview tab opens. Clicking another script reuses the same tab.
-
Double-click the tab, or edit the code.
→ The tab becomes a permanent tab.
-
Drag a tab onto another tab.
→ The tab order changes.
-
Click the × button on a tab, or press Ctrl + W.
→ A tab with no unsaved edit closes. For a tab with an unsaved edit, the "Save the changes to <name>?" window appears.
-
Click Save, Don't Save or Cancel.
→ After Don't Save, a script with a file returns to the content last saved or loaded. A draft with no file keeps what you wrote in the list.
-
Press Ctrl + Shift + S.
→ Every script that is unsaved or has no file is saved one after another.
📝 Note:
- There is only one preview tab.
- When a save fails, the status line shows "Could not save <path>" and the blue dot stays. The text you were editing stays in the editor.
Find and Replace
Operation
-
Press Ctrl + F, or click the magnifier on the Source row.
→ The Find panel appears at the top right of the code area.
-
Enter the text to find in the Find field.
→ The match count is displayed.
-
Turn on Match Case or Match Whole Word.
-
Press Enter.
→ The view moves to the next match. Press Shift + Enter to move to the previous match.
-
Click the Show Replace button.
→ The Replace field and the Replace and Replace All buttons appear.
-
Enter the replacement and click Replace All.
→ Every match changes at once. One Ctrl + Z undoes all of them.
📝 Note:
- Regular expressions are not supported.
- The search text and the replacement are kept per tab and are not restored after a restart.
Outside Change Dots
Operation
-
Save a .py file that is open in Python Editor from another editor such as VSCode.
→ An red dot appears on the list row and the tab title. A tab with no unsaved edit refreshes to the latest content.
-
Open that tab again: click another tab and come back, or click the script in the list.
→ The red dot disappears.
Options
| Option | Description |
| Blue dot | The document has an unsaved edit. It disappears when you save. |
| Red dot | The file of a script opened as a tab changed outside. When a blue dot also applies, only the red dot is displayed. |
📝 Note: Saving a tab that carries the red dot writes your edited content to the file and the outside change is lost. No window asks which side to keep.
Shortcuts
Options
| Option | Description |
| Ctrl + N | Creates a new script and opens it as a permanent tab. |
| Ctrl + O | Opens the Open Python Script window. |
| Ctrl + S | Saves the tab you are viewing. |
| Ctrl + Shift + S | Saves every unsaved script. |
| Ctrl + D | Duplicates the selected scripts, or the tab you are viewing when none is selected. |
| Ctrl + W | Closes the tab you are viewing. |
| Ctrl + F | Opens the Find panel. |
| Ctrl + Tab / Ctrl + Shift + Tab | Moves to the next / previous tab. |
| Ctrl + Return | Runs the script you are viewing. |
| Ctrl + B | Shows or hides the Scripts panel. |
| Ctrl + L | Clears the console. |
| Ctrl + + / Ctrl + - / Ctrl + 0 | Enlarges, shrinks and resets the code text size. |
| F2 | Opens the name field on a list row or a group header. |
| Delete | Takes the selected rows off the list. |
📝 Note: The keys work only while focus is inside Python Editor. On macOS, use Cmd in place of Ctrl.
Comments