Skip to main content

Pen Tool Options Widget

Overview

PenToolOptions_Widget is the options-bar page shown when MediaToolId::Pen is active in the Media Viewer left tool strip. It provides Pen tool usage instructions, pen target selection, and append-endpoint policy.

Controls

Control State field Description
Pen target combo LineInteractionPrefs::pen_target_mode, pen_new_line_key Selected line edits the current selection; New line · {key} creates a new LineData entity on click
Append to combo LineInteractionPrefs::append_endpoint Choose tip, base, or nearest endpoint for appends

The pen target combo is rebuilt from MediaWidgetState::enabledFeatures("line"), mirroring SelectToolOptions_Widget.

Interaction

  • Ctrl+click appends to the selected line.
  • Click (new-line target) creates the first vertex of a new line.
  • After a new line is created, MediaLine_Widget auto-selects the entity and switches the pen target back to Selected line.
  • Alt+click deletes the nearest vertex on the selected line at the current frame.
  • Right-click the selected line for additional operations.