ArrayArrayArrayArrayArrayArrayArrayArrayArray BrainModular BrainModular Users Forum 2023-03-20T11:02:59+02:00 https://www.brainmodular.com/forums/app.php/feed/topic/7101 2023-03-20T11:02:59+02:00 2023-03-20T11:02:59+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=7101&p=44737#p44737 <![CDATA[Re: External text editor for scripts]]> Statistics: Posted by senso β€” 20 Mar 2023, 10:02


]]>
2023-02-27T05:21:29+02:00 2023-02-27T05:21:29+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=7101&p=44724#p44724 <![CDATA[Re: External text editor for scripts]]>
did you try the 'include' directive ?
{$include C:\Users\senso\Desktop\test.fastscript}
I had no clue.

That's great!!

Can you reference the application path, or does it have to be hard coded?

Statistics: Posted by woodslanding β€” 27 Feb 2023, 04:21


]]>
2023-01-07T16:52:46+02:00 2023-01-07T16:52:46+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=7101&p=44650#p44650 <![CDATA[Re: External text editor for scripts]]> {$include C:\Users\senso\Desktop\test.fastscript}

Statistics: Posted by senso β€” 07 Jan 2023, 15:52


]]>
2023-01-05T19:10:59+02:00 2023-01-05T19:10:59+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=7101&p=44644#p44644 <![CDATA[Re: External text editor for scripts]]>
I'm not sure how the issue of Script not referring to a file on disk is a problem to allow reloading. A patch in my wkp is also not on disk, but it does implement a 'reload patch' function. How is that done? I'm just thinking the script could work the same way....

I guess maybe it is simpler because only top level patches can reload? But for the reload to work, the info about 'location last saved to' has to be stored somewhere, right? (or is it 'location last loaded from?? I'm not even sure, which is maybe why reload doesn't always work as I expect.)

Not a big deal, as I now just select 'open script' from the editor and if I sort by date, usually my script is the top item in the folder that opens. Not always, though, so I have to be careful--which means the process can't quite be mentally 'automated'. ;)

But for me it's better than copying and pasting, because the two versions stay the same.

EDIT: even if the editor window itself remembered the most recent path, that would be helpful. It doesn't need to be stored in the wkp at all. The reload button would need to be greyed out, or not shown, when the window is first opened, as the path would be empty, but once the user selected a script from file, it would be enabled. Then it's just 'save' in the external editor, and 'reload' in the script window.

I'm debugging a huge script right now, and it would so streamline things....

Statistics: Posted by woodslanding β€” 05 Jan 2023, 18:10


]]>
2023-01-05T15:01:28+02:00 2023-01-05T15:01:28+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=7101&p=44640#p44640 <![CDATA[Re: External text editor for scripts]]>
You're right on many topics, reality is not so simple 😁
Script doesn't refer to a file on your hard disk, it is included inside the patch itself. So, to be able to send to an external editor and to reload, you need to refer to a file.
Then, it leads to issues very quickly, changing anything in the path and everything is broken.

Regarding the idea of a "reference" patch you can modify and apply the modification on all "followers" was study at the office. But it is very tricky. And leads also to many issues.

Reference, or comparisons are under the radar, for sure.

As mentioned before, we working on new object programming capabilities in Usine, far from it's primary goal. Global Arrays and inspector, introduced in HH5 and deeply improved since then were thΓ© first steps. More with break points to read values everywhere in your workspace.

Regards

Sylvain

Statistics: Posted by SylvainT β€” 05 Jan 2023, 14:01


]]>
2023-01-05T02:15:03+02:00 2023-01-05T02:15:03+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=7101&p=44637#p44637 <![CDATA[Re: External text editor for scripts]]>
BTW, is there a way to find out what file a patch references, vis-a-vis 'reload patch'? There are times when I've inadvertently got two versions of the same patch in two different folders, and not all versions of the patch in my WKP reference the same file. It would be nice to know what file the patch references.

In fact, a global 'reload all' option for scripts would be amazing. And maybe also for patches and subpatches too. I so often make a fix to a subpatch or a script, and then have to change it in a dozen other different places (easier with the search function, but still a pain...)

Statistics: Posted by woodslanding β€” 05 Jan 2023, 01:15


]]>
2023-01-04T19:46:38+02:00 2023-01-04T19:46:38+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=7101&p=44633#p44633 <![CDATA[Re: External text editor for scripts]]>
Yes, often in discussion. Always not a priority.
We also use VSC with copy/paste back and forth.
It's obviously a good suggestions.

Sylvain

Statistics: Posted by SylvainT β€” 04 Jan 2023, 18:46


]]>
2023-01-04T19:45:13+02:00 2023-01-04T19:45:13+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=7101&p=44632#p44632 <![CDATA[Re: External text editor for scripts]]>
Yes, often in discussion. Always not a priority.
We also use VSC with copy/paste back and forth.
It's obviously a good suggestions.

Sylvain

Statistics: Posted by SylvainT β€” 04 Jan 2023, 18:45


]]>
2023-01-04T19:19:23+02:00 2023-01-04T19:19:23+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=7101&p=44630#p44630 <![CDATA[External text editor for scripts]]>
The kerning is horrible, you can't use tabs, no support for indentation, position of characters move when color changes, the cursor gets out of synch with the character position periodically, etc, etc.

But in earlier versions of Usine there was tight integration with external editors. Wondering if we could bring that back. I have VSCode set up nicely for Delphi, but I constantly have to copy and paste back and forth.

I'd love the option to never see that text editor window again. Although I guess I will still need it for the object names list...

Edit: Maybe the preference could be just to override the double-click on a script to open it in an external editor, and the button in the script parameter window would still open the built-in editor. Or maybe there could be a separate button in the script parameter window for opening the object list...

Statistics: Posted by woodslanding β€” 04 Jan 2023, 18:19


]]>
BrainModular BrainModular Users Forum 2023-03-20T11:02:59+02:00 https://www.brainmodular.com/forums/app.php/feed/topic/7101 2023-03-20T11:02:59+02:00 2023-03-20T11:02:59+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=7101&p=44737#p44737 <![CDATA[Re: External text editor for scripts]]> Statistics: Posted by senso β€” 20 Mar 2023, 10:02


]]>
2023-02-27T05:21:29+02:00 2023-02-27T05:21:29+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=7101&p=44724#p44724 <![CDATA[Re: External text editor for scripts]]>
did you try the 'include' directive ?
{$include C:\Users\senso\Desktop\test.fastscript}
I had no clue.

That's great!!

Can you reference the application path, or does it have to be hard coded?

Statistics: Posted by woodslanding β€” 27 Feb 2023, 04:21


]]>
2023-01-07T16:52:46+02:00 2023-01-07T16:52:46+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=7101&p=44650#p44650 <![CDATA[Re: External text editor for scripts]]> {$include C:\Users\senso\Desktop\test.fastscript}

Statistics: Posted by senso β€” 07 Jan 2023, 15:52


]]>
2023-01-05T19:10:59+02:00 2023-01-05T19:10:59+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=7101&p=44644#p44644 <![CDATA[Re: External text editor for scripts]]>
I'm not sure how the issue of Script not referring to a file on disk is a problem to allow reloading. A patch in my wkp is also not on disk, but it does implement a 'reload patch' function. How is that done? I'm just thinking the script could work the same way....

I guess maybe it is simpler because only top level patches can reload? But for the reload to work, the info about 'location last saved to' has to be stored somewhere, right? (or is it 'location last loaded from?? I'm not even sure, which is maybe why reload doesn't always work as I expect.)

Not a big deal, as I now just select 'open script' from the editor and if I sort by date, usually my script is the top item in the folder that opens. Not always, though, so I have to be careful--which means the process can't quite be mentally 'automated'. ;)

But for me it's better than copying and pasting, because the two versions stay the same.

EDIT: even if the editor window itself remembered the most recent path, that would be helpful. It doesn't need to be stored in the wkp at all. The reload button would need to be greyed out, or not shown, when the window is first opened, as the path would be empty, but once the user selected a script from file, it would be enabled. Then it's just 'save' in the external editor, and 'reload' in the script window.

I'm debugging a huge script right now, and it would so streamline things....

Statistics: Posted by woodslanding β€” 05 Jan 2023, 18:10


]]>
2023-01-05T15:01:28+02:00 2023-01-05T15:01:28+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=7101&p=44640#p44640 <![CDATA[Re: External text editor for scripts]]>
You're right on many topics, reality is not so simple 😁
Script doesn't refer to a file on your hard disk, it is included inside the patch itself. So, to be able to send to an external editor and to reload, you need to refer to a file.
Then, it leads to issues very quickly, changing anything in the path and everything is broken.

Regarding the idea of a "reference" patch you can modify and apply the modification on all "followers" was study at the office. But it is very tricky. And leads also to many issues.

Reference, or comparisons are under the radar, for sure.

As mentioned before, we working on new object programming capabilities in Usine, far from it's primary goal. Global Arrays and inspector, introduced in HH5 and deeply improved since then were thΓ© first steps. More with break points to read values everywhere in your workspace.

Regards

Sylvain

Statistics: Posted by SylvainT β€” 05 Jan 2023, 14:01


]]>
2023-01-05T02:15:03+02:00 2023-01-05T02:15:03+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=7101&p=44637#p44637 <![CDATA[Re: External text editor for scripts]]>
BTW, is there a way to find out what file a patch references, vis-a-vis 'reload patch'? There are times when I've inadvertently got two versions of the same patch in two different folders, and not all versions of the patch in my WKP reference the same file. It would be nice to know what file the patch references.

In fact, a global 'reload all' option for scripts would be amazing. And maybe also for patches and subpatches too. I so often make a fix to a subpatch or a script, and then have to change it in a dozen other different places (easier with the search function, but still a pain...)

Statistics: Posted by woodslanding β€” 05 Jan 2023, 01:15


]]>
2023-01-04T19:46:38+02:00 2023-01-04T19:46:38+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=7101&p=44633#p44633 <![CDATA[Re: External text editor for scripts]]>
Yes, often in discussion. Always not a priority.
We also use VSC with copy/paste back and forth.
It's obviously a good suggestions.

Sylvain

Statistics: Posted by SylvainT β€” 04 Jan 2023, 18:46


]]>
2023-01-04T19:45:13+02:00 2023-01-04T19:45:13+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=7101&p=44632#p44632 <![CDATA[Re: External text editor for scripts]]>
Yes, often in discussion. Always not a priority.
We also use VSC with copy/paste back and forth.
It's obviously a good suggestions.

Sylvain

Statistics: Posted by SylvainT β€” 04 Jan 2023, 18:45


]]>
2023-01-04T19:19:23+02:00 2023-01-04T19:19:23+02:00 https://www.brainmodular.com/forums/viewtopic.php?t=7101&p=44630#p44630 <![CDATA[External text editor for scripts]]>
The kerning is horrible, you can't use tabs, no support for indentation, position of characters move when color changes, the cursor gets out of synch with the character position periodically, etc, etc.

But in earlier versions of Usine there was tight integration with external editors. Wondering if we could bring that back. I have VSCode set up nicely for Delphi, but I constantly have to copy and paste back and forth.

I'd love the option to never see that text editor window again. Although I guess I will still need it for the object names list...

Edit: Maybe the preference could be just to override the double-click on a script to open it in an external editor, and the button in the script parameter window would still open the built-in editor. Or maybe there could be a separate button in the script parameter window for opening the object list...

Statistics: Posted by woodslanding β€” 04 Jan 2023, 18:19


]]>