Skip to content

Creating Presets

Creating a preset is as simple as creating a new .json file in the Presets folder and setting the options you want.

Notes

  • Removing properties means that BetterSabers will automatically use the default values shown in the Example Preset
  • It is recommended to look at the included presets to understand how a final preset looks.
  • All comments (human readable text that start with 2 slashes) should be removed when saving the file as a preset
  • The final preset file must be a .json file for it to be recognized by BetterSabers

Example Preset

The Example Preset goes over how a preset functions

ExamplePreset.json
// The Basic Structure of a Preset 
{
  // Metadata 
  "Metadata": {
    "Name": "Example Preset",
    "Author": "Your Name Here",
    "Version": "1.0.0"
  },

  // OuterColor 
  "OuterColor": [1, 1, 1],
  "Mult": 1000,

  // InnerColor 
  "InnerColor": [1, 1, 1],
  "Desat": 1,

  // Light 
  "LightColor": [1, 1, 1],
  "LightIntensity": 100,
  "LightPulseIntensity": 0.25,
  "LightFalloffOffset": 0.1,
  "LightFalloffRadius": 10,

  // Shape 
  "Width": 0.03,
  "LengthMult": 1.0,
  "TipLength": 0.075,
  "TipMinWidth": 0.2,

  // Trail 
  "BaseMotionMult": 0.25,
  "BaseWidthMult": 1.1,

  // Pulse 
  "PulseAmplitude": 0.25,
  "PulseIntensity": 0.15,

  // Enforce Style 
  "EnforceStyle": "Standard",

  // Example Extra Parameter 
  "ExtraParams": [
    { "ID": 38069024, "Values": [2, 4, 0.005, 1.5] }
  ]
}