Hi all,
I run a CO2 laser with LightBurn, but I often get projects made in xTool Studio. Exporting SVG loses all layer settings, so I wrote a small open-source converter:
What it does:
- Reads .xs (newer xTool Studio) and .xcs files
- Transfers geometry (paths, shapes, groups) and bitmaps
- Creates LightBurn layers per color and operation: cut, line engrave, fill, image
- Carries over power, speed, passes, line interval, scan angle, cross-hatch, dither mode, negative image and kerf
- Objects disabled in xTool go to layers with Output off, so nothing is lost
- Preview window with a layer table; you can edit layer settings before converting
- Optional material database: pick a material and its settings replace the xTool ones
- Mirror X / Mirror Y options to match your device settings
- English and Polish UI; other languages can be added as a simple JSON file
It is a single Python script (Python 3.8+, Windows / macOS / Linux), MIT licensed. Console mode for batch conversion is included.
Some limits: text has to be converted to paths in xTool first, xTool image adjustments are not transferred, and the .xs format is undocumented, so a new xTool Studio version may break something. Laser settings from another machine are only a starting point, so run a material test before a real job.
If a project does not convert correctly, please open an issue on GitHub with a sample file. Feedback welcome!