Jump to content
C4 Forums | Control4

How to use Toggle function and dim at same time.


fdastoor

Recommended Posts


Don't use toggle... instead tell it to ramp lights to 100% over 5 seconds etc... if you're trying to put it into a single button - then you'll have to create a variable and track the state of the light AND use the script above.

Link to comment
Share on other sites

MetFan - that won't work with a "TOGGLE" command. Toggle just tells the system to do the opposite of what it's currently at. If its on, then turn it off etc...

FDAStoor - Here's what you want to do:

Create a variable: LIGHT STATUS True or False.

- When Button x is pressed:

- If LIGHT STATUS is TRUE

- Ramp Light to 0 over 10 seconds

- SET LIGHT STATUS to FALSE

- STOP

- If LIGHT STATUS is FALSE

- Ramp Light to 100 over 10 seconds

- SET LIGHT STATUS to TRUE

- STOP

The "STOP" tells the programming not to proceed after it's done with that statement. Hope this helps,

Shawn

Link to comment
Share on other sites

I am missing one very simple point. How do you get the command lines Below the If statements to indent? No matter what I do all the statements line up on the left. As a result The program is not executing as it should.

I tried dropping the second line on the first line and it just pushes the 'If Variable' command line down.

And, If I drag the 2nd line into the script box it always lines up with the first line.

I am being stupid, I know but Rather that than remain ignorant, I am asking.

Please advise. Thanks again for all the help

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.