HISE Logo Forum
    • Categories
    • Register
    • Login

    Saving external file in standalone script editor

    Scheduled Pinned Locked Moved Feature Requests
    24 Posts 2 Posters 4.7k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Christoph HartC
      Christoph Hart
      last edited by

      Ah, nice catch! Connecting a script to a MIDI processor is a read-only connection (that's why the script editor will be hidden in the main panel). However, it's still fully accessible in the Scripting workspace, but it will not write to the file because of the "read-onlyness".

      It has to be read only in order to make sure that multiple scripts that use the same external file have the same state.

      I "fixed" it by removing connected script processors from the editor drop down - not sure if this is a satifying answer for you though :)

      1 Reply Last reply Reply Quote 1
      • d.healeyD
        d.healey
        last edited by

        Well it solves the problem :) however it creates another question for me. What if I want to edit the file in the HISE editor? I'm trying to remove the need for an external text editor and do everything in HISE.

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        1 Reply Last reply Reply Quote 0
        • Christoph HartC
          Christoph Hart
          last edited by

          Well, I added this feature for scripts that are somewhat "finished" and just need to be reused (so as long as you're working on a script, it's recommended to not connect it to an external file). However if you want to make changes to this script - nobody's perfect :), you can:

          1. disconnect the processor (which will load the script's content back into the processor)
          2. change it until it works
          3. Save the script as file (and overwrite the old file).
          4. Connect it back to the overwritten file
          5. Recompile all scripts (Shift + F5) so that the changes will be applied to all other instances.
          1 Reply Last reply Reply Quote 1
          • d.healeyD
            d.healey
            last edited by

            Cool, that seems pretty straightforward

            Libre Wave - Freedom respecting instruments and effects
            My Patreon - HISE tutorials
            YouTube Channel - Public HISE tutorials

            1 Reply Last reply Reply Quote 0
            • First post
              Last post

            10

            Online

            1.8k

            Users

            12.0k

            Topics

            104.4k

            Posts