I keep doing it seems I keep exiting out the scripting window and losing my scripts.
Would be fantastic to add a prompt to save, or cancel if not saved.
-S
FastScript - Save Dialog Prompt
maybe put the old script in the trash is easier to implement and could be equivalent.
Olivier Sens
www.brainmodular.com
www.brainmodular.com
That sounds like a decent solution senso. I continuously have an issue where I hit escape (normal first move to save when in vim) and this erases all my changes. To have it instead save the new changes and put the old version in the trash would be very helpful.
Yes I agree...I tend to multitask...and compare and end up closing the wrong script.
I am not the most efficient at scripting yet...so much more frustrating when I lose a giant script
I am not the most efficient at scripting yet...so much more frustrating when I lose a giant script
"Every act of creation is first an act of destruction." -Picasso
-
woodslanding
- Member
- Posts: 1327
- Contact:
I do all my scripting in an external editor.
I find the cursor location anomalous compared to any other app (notepad,word,any browser, etc.) so I keep selecting whole lines when I'm trying to select a character, it's impossible to select the first character in a line, etc.
I recommend notepad++. Save your script with a .pas extension, and you get all the context coloring. And you have global search and replace, etc. When I think I'm done, I copy/paste into usine, and debug there. (There used to be a way to compile from an external editor, don't know if that's been implemented in V6, but that would be even easier.) Then I copy/paste it back into notepad. Keeps all my scripts handy in one place.
Now if I could just figure out how to rename scripts in HH.....
I find the cursor location anomalous compared to any other app (notepad,word,any browser, etc.) so I keep selecting whole lines when I'm trying to select a character, it's impossible to select the first character in a line, etc.
I recommend notepad++. Save your script with a .pas extension, and you get all the context coloring. And you have global search and replace, etc. When I think I'm done, I copy/paste into usine, and debug there. (There used to be a way to compile from an external editor, don't know if that's been implemented in V6, but that would be even easier.) Then I copy/paste it back into notepad. Keeps all my scripts handy in one place.
Now if I could just figure out how to rename scripts in HH.....
Custom Ryzen 5900x MATX build, Win10, Fireface UFX, touchscreen
Custom 2 manual midi keyboard
Usine, Kontakt, Reaktor, Synthmaster, Byome, Arturia, Soundtoys, Unify
Custom 2 manual midi keyboard
Usine, Kontakt, Reaktor, Synthmaster, Byome, Arturia, Soundtoys, Unify
I too do my scripting in an external editor. (Emacs with a modified pascal-mode for proper syntax highlighting, outlining, indenting etc of fastscript. Ask if you'd like a copy.)
The fastest way I've found to integrate it into my workflow is to save the edited file, switch to Usine, open the Browser (apple-B), and drag the script into my patch. I found copy/pasting the text into a Usine script window too inconvenient. (If I'm replacing a previous script instance in a patch then I drag the new script from the Browser whilst holding Alt so it replaces the previous one).
It would be nice if Usine had a "Reload" option for scripts (i.e. they remembered if an external file provided the source) but I'm sure Senso and the crew have enough to think about as it is.
The fastest way I've found to integrate it into my workflow is to save the edited file, switch to Usine, open the Browser (apple-B), and drag the script into my patch. I found copy/pasting the text into a Usine script window too inconvenient. (If I'm replacing a previous script instance in a patch then I drag the new script from the Browser whilst holding Alt so it replaces the previous one).
It would be nice if Usine had a "Reload" option for scripts (i.e. they remembered if an external file provided the source) but I'm sure Senso and the crew have enough to think about as it is.
Who is online
Users browsing this forum: No registered users and 49 guests
