xLightsSequencer / xLights

xLights is a sequencer for Lights. xLights has usb and E1.31 drivers. You can create sequences in this object oriented program. You can create playlists, schedule them, test your hardware, convert between different sequencers.
GNU General Public License v3.0
551 stars 209 forks source link

Preset extract from project #4194

Open ScobbyDoo opened 10 months ago

ScobbyDoo commented 10 months ago

I've created multiple projects in Xlights , what if i want to extract effects? From project file

From Extensions like .xml .xsq

For present file , there is group & name in xml format, & in .xsq file their is also tag for

What parameters should i crunch for extraction of full effects from all .xsq projects

I know their is naming conflicts,but I'll handle it & make simple python script that will scan all given path & extract that parameters & save in preset file

Or feature in xLights it self to export all effects as preset

Thanks

AzGilrock commented 10 months ago

A preset uses the Copy/Paste format and there are codes in the preset that tell xLights how far away the effect was from the top-left effect in the selection when creating the effect. So when you apply a preset its basically the exact same as having copied the effects and hitting paste. So you can copy some effects and paste into Notepad and see the preset format.

Effects in a sequence (.xsq) file are in a lookup table. The model will have a number that indicates the effects lookup ID in that table. Also note that the effect entries can look rather short because to save space we don't record default settings so you will only see the settings from the effect that were changed away from the effects default values.

We don't document these formats so you would need to start digging into the code. I can't imagine any value in what it sounds like your doing.

cybercop23 commented 8 months ago

Maybe a middle ground solution is this https://github.com/xLightsSequencer/xLights/issues/4298