Editor Automation
The Editor Automation toolbox lets a document work on other documents in the editor: open and save them, find a graph, find, add, connect, move and remove nodes, set an input, read and change the selection, run a document, set the status bar and fit the view. Every change is one step you can undo.
Use it to repeat edits across many documents, or to build helpers that set up a graph for you.
- Included in: Divooka Compute only, every tier. Add Editor Automation with Add reference (
Ctrl+Shift+L). - Maturity: Preview · Support: Tier 2 (proposed) · what these mean
- Open it: node library (
Ctrl+Shift+Space) → Editor Automation, or search for a node withCtrl+Space. - Examples and reference:
Ctrl+Shift+E→ Editor Automation (3 examples) · node reference
New to graphs? Start with Your first program.
Example: add a Print Line to another document
Open Editor Automation > Steps (Ctrl+Shift+E), then Editor Automation > Greet After Begin. Greet After Begin's Main:
- Finds Begin in the document that was in front before this one (Steps).
- Puts a Print Line right after it, with a greeting to print.
- Fits that graph in view.
Press Automate Editor on the toolbar. The Print Line goes into Steps, and the console says which document it changed.
Tips and limits
- Runs only with Automate Editor.
F5, a separate process, Compiled mode and Publish refuse a document made of these nodes. - Scripts can do the same. Automate Editor also runs C#, Lua and Python scripts; see Editor Automation > Run Folder.
What is in the toolbox
| Category | Some of its nodes |
|---|---|
| Nodes | Add Node, Connect, Find Node, Insert After and 4 more |
| Documents | Activate Document, Active Document, Document Name, Open Document and 1 more |
| Graphs | Active Graph, Find Graph |
| Selection | Selected Nodes, Select Nodes |
| Editor | Run Document, Set Status |
| View | Fit View |
See also
- Editor Automation node reference
- Automating the editor
- Toolboxes - every other toolbox.