Jump to content

Running a program on scene activation


rlebel

Recommended Posts

Posted

I have a number of scenes that are controlled by multiple (about eight) KPLs. Sometimes I need a program to be activated along with the scene and the technique I have used so far is that I have a big "OR" for all of the control events. Is there an easier way?

Posted

This is how I would do it. I understand that there is no such thing as "scene status", so one must look for triggers from the individual scene controllers. No better way is coming to mind.

Posted

If you do a program "Status" condition on a KPL controller or responder button in a scene, the program will trigger when the scene triggers the status change on that button. For example:

 

If Status 'KPLTest A' is switched on
Then $Var = 100
Else $Var = 0

Presuming "KPLTest A" is linked to the scene, the variable $Var changes between 0 and 100 as the scene is switched off and on.

 

This is true regardless of how the scene is initiated since any way it happens will change the button status -- assuming it is a controller or responder in the scene.

 

Note this doesn't work if you use a "Control" test instead of "Status".

 

And of course if you remove the program-triggering button from the scene you still need to update your code to sync with that change.

Posted

Thanks for the suggestion, but actually I guess I can also skip the variable and just use button status as a proxy for the scene. I just tried that and it seems to work just fine.

Posted

Sure. The variable was just to illustrate the general idea. Once you trigger off the status you should be able to have the program do whatever you want.

Guest
This topic is now closed to further replies.

×
×
  • Create New...