ResetPreset() - The Reset Preset Function

The ResetPreset() command is used to return lighting levels to the ones stored in the currently active preset.
This overrides any channel level commands. If individual channels are in different presets due to OneTouch(0x6b) messages they will go to the value of their current respective presets.
The primary use for this is to update lighting levels after a PresetOffset command.

Syntax

ResetPreset(A=x,F=x,J=x)

Parameters
  • "A" is the area number - Default of 1

  • "F" is the fade time - Default is 0.2 seconds

  • "J" is the join level - Default is 0xFF

Use a long fade time to make the changes undetectable to the end user!

Examples

Example 1

{
PresetOffset(A=2,O=4) //Offset preset in area 2 by 4.  So preset 1 will not recall values from preset 5.
Delay(.2)
ResetPreset(A=2,F=60) //Slowly fade the lights to the new levels over 1min.
}

Example 2

Offset all the areas at once using a baselink area.

const# BLA 250
{
PresetOffset(A=BLA,O=0) //Undo any preset offsets for the light areas.
Delay(.2)
ResetPreset(A=BLA,F=5)  //Fade lighting areas to the new light levels over 5s.
}

Example 3

Use channel level and reset preset to do a double warning flash.

const# BLA 250 //Baselink area for the open office areas.
{
ChannelLevel(A=BLA,C=0,L=0,F=.5) //Fade the lighting to 0% over 500ms.
Delay(.5)
ResetPreset(A=BLA,F=.5)  //Return to previous levels over 500ms.
Delay(.5)
ChannelLevel(A=BLA,C=0,L=0,F=.5) //Fade the lighting to 0% over 500ms.
Delay(.5)
ResetPreset(A=BLA,F=.5)  //Return to previous levels over 500ms.
}