Draw To Screen Space Foreground From DrawViewportWires

Thanks a lot, works perfect.

There are still some strange bugs:

  1. The title of the legend can be updated via the input
  2. The legend values not for some reason I do not understand

Ad. 2: They are only updated when the code is being rerun. However, it then overlaps the old inputs, as can be seen here.

i tried to implement sth like the Redraw method, but was not successful in calling it.

230927_HUD.gh (10.6 KB)

edit: i found the solution, the values have to be cleared whenever the RunScript is called with

plotValues.Clear();
plotColors.Clear();