Welcome to %s forums

BrainModular Users Forum

Login Register

INCLUDE function in scripts?

Tell us what you'd like Usine to do
Post Reply
woodslanding
Member
Posts: 1326
Contact:

INCLUDE function in scripts?

Unread post by woodslanding » 11 Dec 2025, 01:26

I've been thinking of changing my debug methods in scripts to write to an external file, since the trace is unreadable with my eyesight, and the console is spammed by usine internal messages. Also I cannot get the filter to work, (no mention of it at all in the manual entry for the inspector) and there is no find function in the console.

At present, I have 277 scripts in my wkp. So to change the debug method for all of them would be a huge hassle. And if I think of another change to it, I can make that change again 277 times. For instance, using usine objects, I am able to turn on and off debugging from a button in the toolbox. This works on the half-dozen scripts that implement it, but not on any of the rest.

It would be really nice to be able to keep common methods like this in a separate file.
Custom Ryzen 5900x MATX build, Win10, Fireface UFX, touchscreen
Custom 2 manual midi keyboard
Usine, Kontakt, Reaktor, Synthmaster, Byome, Arturia, Soundtoys, Unify

User avatar
oli_lab
Member
Posts: 1244
Location: Brittany, France
Contact:

Unread post by oli_lab » 12 Dec 2025, 21:33

Hi,
just a question : are the 277 scripts all the same or are they all different ?

if they are the same, a good idea would be to use the procedure thing : one procedure can be used in as much instances that you need.

cheers.

Olivar
http://oli-lab.org

Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces

follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social

Post Reply

Who is online

Users browsing this forum: No registered users and 189 guests