Page 1 of 1

INCLUDE function in scripts?

Posted: 11 Dec 2025, 01:26
by woodslanding
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.

Re: INCLUDE function in scripts?

Posted: 12 Dec 2025, 21:33
by oli_lab
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