Preset syntax question

Hello,
I’m not familiar with wled yet and would need a little help to understand if it’s possible to edit the default syntax for the following idea?
I am thinking about installing a 5m sk6812 around a through stip. The through stip is to be split into 3 logical effect parts top, left and right. The effect is a double scanner (effect 60). I want the effect for each part, top, left and right, so separate. Is that possible?

The current syntax of the preset is as shown here for the top part (2/3), starting at led 75 to 225.
How can I edit the syntax for the left vertical part (1/3) from led 0 to 74 and the right vertical part (3/3) from led 226 to 300?

{“on”:true,“bri”:210,“transition”:7,“mainseg”:0,“seg”:[{“id”:0,“start”:75,“stop”:225,“grp”:1,“spc”:0,“of”:0,“on”:true,“bri”:255,“cct”:127,“col”:[[255,0,0],[0,0,0],[0,0,0]],“fx”:60,“sx”:104,“ix”:244,“pal”:2,“sel”:true,“rev”:false,“mi”:false},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0}]}

Thanks for your help,
JohnnyB

Translated with DeepL Translate: The world's most accurate translator (free version)

Yes, just create three segments with the counts for each area.

Hi tonyno,
thanks for your answer. Can you please show me how the syntax is. I tried different versions but I alwasy created syntax errors.

{“on”:true,“bri”:210,“transition”:7,“mainseg”:0,“seg”:[{“id”:0,“start”:0,“stop”:74,“grp”:1,“spc”:0,“of”:0,“on”:true,“bri”:255,“cct”:127,“col”:[[255,0,0],[0,0,0],[0,0,0]],“fx”:60,“sx”:104,“ix”:244,“pal”:2,“sel”:true,“rev”:false,“mi”:false},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0}]},{“on”:true,“bri”:210,“transition”:7,“mainseg”:1,“seg”:[{“id”:0,“start”:75,“stop”:224,“grp”:1,“spc”:0,“of”:0,“on”:true,“bri”:255,“cct”:127,“col”:[[255,0,0],[0,0,0],[0,0,0]],“fx”:60,“sx”:104,“ix”:244,“pal”:2,“sel”:true,“rev”:false,“mi”:false},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0}]},{“on”:true,“bri”:210,“transition”:7,“mainseg”:2,“seg”:[{“id”:0,“start”:226,“stop”:300,“grp”:1,“spc”:0,“of”:0,“on”:true,“bri”:255,“cct”:127,“col”:[[255,0,0],[0,0,0],[0,0,0]],“fx”:60,“sx”:104,“ix”:244,“pal”:2,“sel”:true,“rev”:false,“mi”:false},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0}]}

The easiest approach is to let WLED do it. Meaning set up your segments, select each segment and then assign the effects / colors you want. Then save a preset with current state and segment bounds. You can then edit your presets.json or just grab it from the UI and modify to suit your needs.

Hi Artacus,

Thaks, doing so, I found this syntax to work for me.

{“on”:true,“bri”:128,“transition”:7,“mainseg”:0,“seg”:[{“id”:0,“start”:0,“stop”:75,“grp”:1,“spc”:0,“of”:0,“on”:true,“bri”:255,“cct”:127,“col”:[[255,0,0,0],[0,0,0,0],[0,0,0,0]],“fx”:41,“sx”:194,“ix”:221,“pal”:2,“sel”:true,“rev”:false,“mi”:false},{“id”:1,“start”:76,“stop”:225,“grp”:1,“spc”:0,“of”:0,“on”:true,“bri”:255,“cct”:127,“col”:[[255,0,0,0],[0,0,0,0],[0,0,0,0]],“fx”:60,“sx”:114,“ix”:231,“pal”:0,“sel”:true,“rev”:false,“mi”:false},{“id”:2,“start”:225,“stop”:300,“grp”:1,“spc”:0,“of”:0,“on”:true,“bri”:255,“cct”:127,“col”:[[255,0,0,0],[0,0,0,0],[0,0,0,0]],“fx”:41,“sx”:160,“ix”:210,“pal”:0,“sel”:true,“rev”:true,“mi”:false},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0},{“stop”:0}]}

Don’t know why the API command window doesn’t appear every time, but at some point the window reappeared and i was able to copy the syntax.

The API command window is determined by the “Use current state” checkbox.

Hi Artacus,
In the v0.13.0-b6 “Toki”, this checkbox is determined "Overwrite whit state.
Thank you and tonino for your help.
Cheers,
JohnnyB