Adding predefined effects to your xlights_keybindings.xml file
1. Create an effect and place it on a model.
2. Highlight that cell and COPY via control+c (WIn) Cmd+C (mac)
3. Open Notepad++ and paste the effect into a new file
Example of the pasted effect:
Fire
E_CHECKBOX_Fire_GrowFire=0,E_SLIDER_Fire_Height=43,E_SLIDER_Fire_HueShift=73,T_CHECKBOX_FitToTime=0,T_CHECKBOX_LayerMorph=0,T_CHECKBOX_OverlayBkg=0,T_CHOICE_LayerMethod=Effect1,T_SLIDER_EffectLayerMix=0,T_SLIDER_Speed=11,T_TEXTCTRL_Fadein=0.00,T_TEXTCTRL_Fadeout=0.00,C_BUTTON_Palette1=#FF0000,C_BUTTON_Palette2=#00FF00,C_BUTTON_Palette3=#0000FF,C_BUTTON_Palette4=#FFFFFF,C_BUTTON_Palette5=#8000FF,C_BUTTON_Palette6=#000000,C_CHECKBOX_Palette1=1,C_CHECKBOX_Palette2=0,C_CHECKBOX_Palette3=1,C_CHECKBOX_Palette4=1,C_CHECKBOX_Palette5=0,C_CHECKBOX_Palette6=0,C_SLIDER_Brightness=100,C_SLIDER_Contrast=0,C_SLIDER_SparkleFrequency=0
4. Close Nutcracker (VERY IMPORTANT)
5. Open the xlights_keybinding.xml file with Notepad ++
6. Add a new hotkey line between the <keybindings> </keybindings> tags
Example to use the number 5 for the new Fire preset
<keybinding key="5" type="EFFECT" effect="Fire"></keybinding>
7. From the new file created copy the pasted text starting at the E_Checkbox all the way to the end.
8. Paste that in the new line created in step 6. Make sure you paste between the > < tags
Example: "Fire"> PASTE HERE </keybinding>
Full example:
<keybinding key="5" type="EFFECT"
effect="Fire">E_CHECKBOX_Fire_GrowFire=0,E_SLIDER_Fire_Height=43,E_SLIDER_Fire_HueShift=73,T_CHECKBOX_FitToTime=0,T_CHECKBOX_LayerMorph=0,T_CHECKBOX_OverlayBkg=0,T_CHOICE_LayerMethod=Effect1,T_SLIDER_EffectLayerMix=0,T_SLIDER_Speed=11,T_TEXTCTRL_Fadein=0.00,T_TEXTCTRL_Fadeout=0.00
C_BUTTON_Palette1=#FF0000,C_BUTTON_Palette2=#00FF00,C_BUTTON_Palette3=#0000FF,C_BUTTON_Palette4=#FFFFFF,C_BUTTON_Palette5=#8000FF,C_BUTTON_Palette6=#000000,C_CHECKBOX_Palette1=1,C_CHECKBOX_Palette2=0,C_CHECKBOX_Palette3=1,C_CHECKBOX_Palette4=1,C_CHECKBOX_Palette5=0,C_CHECKBOX_Palette6=0,C_SLIDER_Brightness=100,C_SLIDER_Contrast=0,C_SLIDER_SparkleFrequency=0</keybinding>
Make sure there are no spaces in that line and there's a comma between each setting.
9. SAVE the xlights_keybindings.xml file
10. Open xLights, open a sequence and highlight a cell, press 5 to see the fire effect you saved appear.