Copy, paste, duplicate and undo
What this page is for
Section titled “What this page is for”Copy and paste let you reuse part of a scheme, in the same scheme or in another. Undo and redo take back, or bring back, every edit you make in the Studio.
When you come here
Section titled “When you come here”- You want a second copy of a branch of a scheme.
- You want to move nodes from one scheme to another.
- You made a change you did not mean to make.
What you see
Section titled “What you see”Two nodes are selected, Chance and Succeed Scheme, and they are linked.
- Start, output Start, goes to Chance.
- Chance, output Success, goes to Succeed Scheme.
- Chance, output Failure, goes to Fail Scheme.
After you copy and paste, the pair is there twice.
- Start, output Start, goes to Chance.
- Chance, output Success, goes to Succeed Scheme.
- Chance, output Failure, goes to Fail Scheme.
- Chance, output Success, goes to Succeed Scheme.
A paste keeps the settings of the nodes and the links between the nodes you copied, and drops every link that leaves the copied set. A setting that points at another node keeps that reference only when that node exists in the graph you paste into. The copies get new identities, so they are separate nodes.
Do it, step by step
Section titled “Do it, step by step”Copy nodes
Section titled “Copy nodes”Select one or more nodes. Right-click one of them and choose Copy.
Copy puts the nodes on the clipboard as text and changes nothing in the scheme. Copy also works in Play mode.
Some nodes cannot be copied: Start, End, On Game Loaded, Family Member and Clan Member. They are left out of the copy. A node group comes along when all its nodes are copied. A card carries the folded lines shown on it, so a copied card keeps its lines.
Cut nodes
Section titled “Cut nodes”Right-click a selected node and choose Cut. The Studio copies the selection, then deletes it. A node that cannot be copied stays where it is.
Cut is grey in Play mode, and while a test run plays the scheme.
Cut a node group’s frame and the frame takes its nodes with it. A plain Delete on a frame only ungroups. Delete and Cut are ignored while you type in a group’s title.
To undo, choose Undo in Unity’s Edit menu (Unity’s undo key works too).
Paste nodes
Section titled “Paste nodes”Right-click empty canvas and choose Paste.
The top-left corner of the pasted block goes to the last place the pointer was on the canvas, and the pasted nodes are selected. With Fold changes off, a copy keeps the places where the nodes were shown.
Paste is grey when the clipboard holds no nodes from the Studio, in Play mode, and while a test run plays the scheme.
A paste skips every node that cannot be copied, every node the open graph does not allow, and every node that may exist only once and is already there. A When a Requirement Breaks node pasted into another scheme takes that scheme’s requirements.
A single line that you copied from a card, and paste with no card, comes up as a card.
To undo, choose Undo in Unity’s Edit menu (Unity’s undo key works too). The step is named Paste Node, or Paste Nodes for several.
Copy a folded line
Section titled “Copy a folded line”Right-click a line and choose Copy, then paste as above. Duplicate in the same menu puts a copy right after the line. See Folding: Then also.
Duplicate nodes
Section titled “Duplicate nodes”Right-click a selected node and choose Duplicate. The copies appear 24 units down and to the right of the top-left corner of the selection, and are selected. Duplicate is copy and paste in one move.
To undo, choose Undo in Unity’s Edit menu (Unity’s undo key works too).
Copy between schemes
Section titled “Copy between schemes”Copy the nodes. Open the other scheme by clicking the item button in the toolbar and picking it. Then right-click empty canvas and choose Paste.
To copy a whole scheme, use Duplicate in the item menu of the toolbar. The copy is titled the original’s title and Copy, for example Title Copy. When that is taken, it is Title Copy 2, then 3, and so on. See The toolbar, control by control.
Undo and redo
Section titled “Undo and redo”The Studio has no undo key of its own. Undo is Unity’s. Choose Undo in Unity’s Edit menu, or use Unity’s undo key. Redo works the same way, with Redo in the Edit menu. On macOS, Unity’s redo key is Cmd+Shift+Z.
Every edit in the Studio is one undo step. A step has a name. These are some of them: Add and the node’s title, Connect Nodes, Disconnect Nodes, Move Node, Move Nodes, Paste Node, Paste Nodes, Fold Change, Unfold, Reorder Changes, Move Change, Duplicate Change, Add Change, Delete Node, Delete Nodes.
After an undo or a redo, the canvas keeps its pan, its zoom and its selection, and the graph shows the data again.
Undo does not save the database. To save, see First tour of the Studio.
Undo while a test run plays
Section titled “Undo while a test run plays”While a test run plays a scheme, the Studio holds Cmd or Ctrl plus ZCmdCtrlZ and Cmd or Ctrl plus YCmdCtrlY, with or without Shift (this covers Unity’s undo and redo keys), on the page that shows that scheme. It says Stop the run to edit. Elsewhere, and in a text field, they work as always.
If an undo from somewhere else changes the graph that is being tested, the run bar says The graph changed during the run (an undo). The run plays the graph it started with.
See Test run: play a scheme in the Studio.
How it connects
Section titled “How it connects”You come from Folding: Then also. The next lesson is Comments and notes. A group is copied as a whole when all its nodes are copied; see Node groups.
To make a node and link it in one move, see Add and connect nodes.
Settings on this page
Section titled “Settings on this page”None.
Mistakes and messages
Section titled “Mistakes and messages”Paste is grey. The clipboard holds no nodes from the Studio, because you copied something else after the nodes. Or the Editor is in Play mode, or a test run plays the scheme.
Nothing came up when I pasted. Every node you copied was one that a paste skips. The list is in the step Paste nodes.
The pasted nodes lost their links. A paste keeps only the links between the nodes you copied. Select the nodes that should stay linked, and copy them together.
| Message | Where it shows | What to do |
|---|---|---|
| Stop the run to edit. | The Studio, when you edit or undo while a test run plays the scheme | Stop the run. |
| The graph changed during the run (an undo). The run plays the graph it started with. | The run bar | Run again to test the changed graph. |