How to Work with Traps

You work with traps on the video image on the screen. A colored marker shows where each trap is projected. In the instructions below, the Ctrl key is the Command key on a Mac, and the Alt key is the Option key.

Create a trap
Hold Shift and click where you want a tweezer. A green marker appears, and a row for the new trap appears in the Traps tab. To add a trap of another kind, or a tweezer on the optical axis, use the Tasks menu.
Move a trap
Drag its marker. The marker is pink while the trap moves, and turns green when you release the button. Or change the x and y of the trap in the Traps tab.
Move a trap along the optical axis
Point at the marker and turn the mouse wheel. Each step of the wheel changes the z of the trap by one pixel. Read and set z exactly in the Traps tab. The marker grows as the trap moves away from the focal plane, in either direction, as a defocused spot does: it is twice as large 100 pixels from the plane.
Delete a trap
Hold Ctrl and Shift and click the marker. If the trap belongs to a group, the whole group is deleted.
Gather traps into a group
Drag a box around the traps, starting on an empty part of the screen. The markers inside the box are yellow while you drag. When you release the button the traps are a group: drag, scroll or rotate any one of them and they all follow. You can still move one member of a group relative to the others in the Traps tab.
Rotate a group
Hold Alt and drag a trap of the group. The group turns about its center to follow the cursor. The markers are pink during the rotation.
Take a trap out of a group
Hold Alt and Shift and click the trap. It then moves on its own.
Lock or unlock a trap or group
Hold Ctrl and Alt and click the marker. A locked trap is white, and cannot be moved, scrolled or rotated. Click it again in the same way to unlock it.
Mark a trap for a task
Hold Ctrl and click the marker. A marked trap is violet. Click it again in the same way to remove the mark. The task Move, and MoveTraps with selected_only, move the marked traps; see Running a queue of tasks.

Hiding the markers

Choose Edit → Toggle Overlay to hide the markers, so that you can see the image beneath them, and again to show them. The traps are still there.

Undo and redo

Adding, deleting, moving, scrolling, rotating and locking a trap, and editing a number in the Traps tab, can be undone with Edit → Undo, and done again with Redo. The turns of the wheel on one trap, one after another, are a single step. Undoing the deletion of a group brings the whole group back. Clear Traps removes every trap and also forgets what could be undone.

The keyboard shortcuts are in Menus, files and keyboard shortcuts.