Since Human is not loading in WiP, I am looking for Text to Screen replacement.
Open AI wasn’t very successful in creating the solution, but Grok got it from the first attempt. After ca. 30 exchanges we got pretty close to the solution with some limitations.
I wanted to replicate the number and order of the inputs, but it failed to flush the text from the Rhino screen, so the boolean needed to be added.
Leaving input as True and close Grasshopper makes the text still appear on the screen.
Can anyone, with deeper understanding of the issue have a look at it? The goal is to have the B input gone and the displayed text disappearing when the Grasshopper session is closed.
That Grok code is quite convoluted! I’d recommend having a look at this content. It demonstrates a general approach to drawing things in GhPython using the SDK mode (i.e. that one can use to build all sorts of heads-up-displays):
Also, here’s a basic example of drawing into screen space:
Note that I use DrawOverlay now to avoid gamma issues in rendered viewports
Edit: Here’s a quick go in Rhino 9 WIP with your inputs:
As I’ve commented in several topics, IMO GhPython has been prematurely marked as old/obsolete. This is another case where the newer IronPython component does not appear to have feature parity (i.e. can do the same thing as GhPython can ):