Hi! I am trying to create a script to flash our house lights during intermission (we currently have the interface setup as a busking type interface - so the script stops the house light functions, then starts a flashing chase). I have everything working, except that I need the house lights to come back up after running the script. If I put a start function at the end of the script, it dies as soon as the script is ended. Is there a way to avoid this?
Here is my script:
stopfunction:9 // House Full
stopfunction:8 // House - No Front
startfunction:26 // Flash House Lights 1
wait:06s.50
// Here is where I would like to add:
// startfunction:8 // House - No Front
// but even if I put a wait timer in so it gets to full fade before the script ends, it kills the house lights as soon as the wait timer is up.
Thanks in advance for the help!
Keep functions running after script?
-
- Posts: 7
- Joined: Mon Jul 06, 2015 2:35 pm
- Location: Frankfurt
- Real Name: Jochen Becker
- Contact:
Bump!
From my point of view this is still an issue.
I expect a function called by a script to run until it is stopped. Situation at the moment is that a function is stopped at the moment a script is finished. Is there some kind of workaround like an everlasting script?
Best regards,
Jochen
From my point of view this is still an issue.
I expect a function called by a script to run until it is stopped. Situation at the moment is that a function is stopped at the moment a script is finished. Is there some kind of workaround like an everlasting script?
Best regards,
Jochen
- mcallegari
- Posts: 4697
- Joined: Sun Apr 12, 2015 9:09 am
- Location: Italy
- Real Name: Massimo Callegari
- Contact:
A chaser where the first step is the script and the second step is "House - No Front" with infinite duration ?
-
- Posts: 7
- Joined: Mon Jul 06, 2015 2:35 pm
- Location: Frankfurt
- Real Name: Jochen Becker
- Contact:
Thank you for the feedback Massimo!
I'll keep that in mind.
My working solution at the moment is to set
as last row of the script.
It's a bit confusing when you have start and stop functions but everything that was started in the script is automatically stopped, once the script is finished.
I really enjoy the script feature. It would be great to have additional functions/methods, variables, statements and loops. But I know that would end in a very complex interpreter very fast.
Maybe a task for someone who has too much sparetime and doesn't know what to do
I'll keep that in mind.
My working solution at the moment is to set
Code: Select all
wait:12h0m0s.00
It's a bit confusing when you have start and stop functions but everything that was started in the script is automatically stopped, once the script is finished.
I really enjoy the script feature. It would be great to have additional functions/methods, variables, statements and loops. But I know that would end in a very complex interpreter very fast.
Maybe a task for someone who has too much sparetime and doesn't know what to do
- mcallegari
- Posts: 4697
- Joined: Sun Apr 12, 2015 9:09 am
- Location: Italy
- Real Name: Massimo Callegari
- Contact:
A Script is a QLC+ Function like all the others, and, like every QLC+ Function, when it's stopped, it stops all the "children" functions it started. (like what happens in a Collection if you like)mobaer wrote:It's a bit confusing when you have start and stop functions but everything that was started in the script is automatically stopped, once the script is finished.
Indeed, but Scripts are potentially dangerous and can make your PC explode ( ), so we need to evaluate carefully every new command we add.mobaer wrote:It would be great to have additional functions/methods, variables, statements and loops. But I know that would end in a very complex interpreter very fast.
A while ago someone asked for a "stopall" command. I asked them a question about the feature and they didn't even reply.
If this is the interest around Scripts, then they can stay as they are now
Not me thenmobaer wrote:Maybe a task for someone who has too much sparetime and doesn't know what to do
-
- Posts: 1
- Joined: Wed Oct 02, 2019 3:33 pm
- Real Name: Jan Houssin
Any chance that this would change?
I need to start a few functions (scenes) when booting my raspberry, but I can only add one startup function.
So I tried starting the scenes I want thru a startup script but found out they release as soon as the script stops, as mentioned in this thread.
Another solution for me would be if it would be possible to add multiple functions to the startup functions.
I need to start a few functions (scenes) when booting my raspberry, but I can only add one startup function.
So I tried starting the scenes I want thru a startup script but found out they release as soon as the script stops, as mentioned in this thread.
Another solution for me would be if it would be possible to add multiple functions to the startup functions.
-
- Posts: 1321
- Joined: Mon Apr 13, 2015 7:05 am
- Location: Bratislava, Slovakia
- Real Name: Jano Svitok
- Contact:
Did you try to put the scenes in a Collection?
-
- Posts: 8
- Joined: Sat Nov 25, 2017 3:52 am
- Real Name: Jeff Vance
Continuing the thread necromancy, I too found that a behavior like this would be useful. I added a new script step that will run a function after the script has killed all its child functions. I can find a spot to upload the code changes if there is interest.
-
- Posts: 3
- Joined: Sun Aug 29, 2021 9:32 pm
- Real Name: Jarda
Hi, is there any progress? I need this feature a lot! Thank you.tubaguy wrote: ↑Fri Jan 03, 2020 2:10 am Continuing the thread necromancy, I too found that a behavior like this would be useful. I added a new script step that will run a function after the script has killed all its child functions. I can find a spot to upload the code changes if there is interest.
-
- Posts: 8
- Joined: Sat Nov 25, 2017 3:52 am
- Real Name: Jeff Vance
And the files I tweaked. This was in the 4.12.2 code chain. Added Final Function to the UI and engine.
I tagged my edits with //hack.
I tagged my edits with //hack.
- Attachments
-
- QLC-AddFinalScript.7z
- Added a script step to run a final function
- (10.01 KiB) Downloaded 484 times