Hide routines behind UI window

I’d like to share my method. Just a combination of Andrew Heumann’s post described
here
and
here

  1. Serialize your HumanUI gh files into string format.
  2. You can encrypt the string or not.
  3. In a new gh doc, make a custom component, using the encrypted string as input, then in the component decrypt and the deserialize the string, run it in a new dummy doc.
    The start gh file maybe look like this.
    1
    And You should properly deal with the close event of humanUI window created in the gh doc.

    And recently I tried something David Rutten described here. It might be useful for calling another gh file which contains the humanUI components.
    Loading a gh file, executing it and harvesting its data
3 Likes