Saving external file in standalone script editor
-
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 :)
-
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.
-
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:
- disconnect the processor (which will load the script's content back into the processor)
- change it until it works
- Save the script as file (and overwrite the old file).
- Connect it back to the overwritten file
- Recompile all scripts (Shift + F5) so that the changes will be applied to all other instances.
-
Cool, that seems pretty straightforward