I’ve use a Scene toggle blueprint for a while, and while it’s done well for us, the whole idea of “if anything in the scene is on it turns the whole thing off” got pretty annoying.
I’ve been reading and figured out the best way to do this is to create a Script instead of a Scene, and then use a Toggle Helper to turn it on and off (and I get transition times!). Buuuut…I can’t get it to work. I made a script with one simple light and set it to turn on at 100%, then programmed the toggle helper to turn on and off the script, but it will only turn it on and not off.
Clearly I’m missing something here, and before I get too deep into some of our more complex lighting looks I’d love to understand what I’m missing.
You cannot “turn off” a script. Maybe the name of the script.turn_off action is slightly misleading, but the only thing it can/will do is stop a script that is in the process of executing. It will not reverse any of its actions if that is what you were expecting.
Yes. Or a single script which contains both sets of actions, which you feed with a variable that says whether it should turn on or off devices.
Another option is a combination of a script or automation together with a scene, where the “off” action in the script/automation gets all the entity IDs used in the scene and turns them off.