UVtools.Core
3.4.3
See the version list below for details.
dotnet add package UVtools.Core --version 3.4.3
NuGet\Install-Package UVtools.Core -Version 3.4.3
<PackageReference Include="UVtools.Core" Version="3.4.3" />
paket add UVtools.Core --version 3.4.3
#r "nuget: UVtools.Core, 3.4.3"
// Install UVtools.Core as a Cake Addin #addin nuget:?package=UVtools.Core&version=3.4.3 // Install UVtools.Core as a Cake Tool #tool nuget:?package=UVtools.Core&version=3.4.3
UVtools
Download the latest version at:
https://github.com/sn4k3/UVtools/releases/latest
To auto install on Windows via a package manager:
- Winget:
winget install -e --id PTRTECH.UVtools
- Chocolatey:
choco install -y uvtools
Note: Winget is included on Windows 11 by default.
To auto install on MacOS via homebrew:
brew install --cask uvtools
MSLA/DLP, file analysis, calibration, repair, conversion and manipulation
This simple tool can give you insight of supports and find some failures. Did you forget what resin or other settings you used on a project? This can also save you, check every setting that were used with or simply change them!
- Facebook group: https://www.facebook.com/groups/uvtools
Why this project?
I don't own a Prusa SL1 or any other resin printer, for now I’m only a FDM user with Prusa MK3 and a Ender3. PrusaSlicer is my only choose, why? Because I think it's the best and feature more, at least for me, simple but powerful.
So why this project? Well in fact I’m looking for a resin printer and i like to study and learn first before buy, get good and don't regret, and while inspecting i found that resin printers firmwares are not as universal as FDM, too many file formats and there before each printer can use their own property file, this of course limit the software selection, for example, only PrusaSlicer can slice SL1 files. So with that in mind i'm preparing when I got some resin printer in future I can use PrusaSlicer instead of others. I've explored the other slicers and again, no one give me joy, and i feel them unstable, many users slice model on PrusaSlicer just to get those supports and export stl to load in another, that means again PrusaSlicer is on the win side, the problem is they can't slice directly on PrusaSlicer, so, in the end, my project aims to do almost that, configure a printer on PrusaSlicer, eg: EPAX X1, slice, export file, convert SL1 to native printer file and print.
Please note i don't have any resin printer! All my work is virtual and calculated, so, use experimental functions with care! Once things got confirmed a list will show. But also, i need victims for test subject. Proceed at your own risk!
Features
- View image layer by layer
- View and extract thumbnails
- View all used settings
- Edit print properties and save file
- Mutate and filter layers
- Check islands, overhangs, resin traps, empty layers and repair/remove them as other issues
- Export file to a folder
- Convert format to another format
- Calibration tests
- Portable (No installation needed)
Known File Formats
- SL1 (PrusaSlicer)
- SL1S (PrusaSlicer)
- Zip (Chitubox)
- Photon (Chitubox)
- Photons (Chitubox)
- CBDDLP (Chitubox)
- CTB (Chitubox)
- PHZ (Chitubox)
- FDG (Voxelab)
- PWS (Photon Workshop)
- PW0 (Photon Workshop)
- PWX (Photon Workshop)
- DLP (Photon Workshop)
- PWMO (Photon Workshop)
- PWMA (Photon Workshop)
- PWMS (Photon Workshop)
- PWMX (Photon Workshop)
- PWMB (Photon Workshop)
- PWSQ (Photon Workshop)
- PM3 (Photon Workshop)
- PM3M (Photon Workshop)
- JXS (GKone Slicer)
- ZCode (UnizMaker)
- ZCodex (Z-Suite)
- CWS (NovaMaker)
- RGB.CWS (Nova Bene4 Mono / Elfin2 Mono SE)
- XML.CWS (Wanhao Workshop)
- MDLP (Makerbase MKS-DLP v1)
- GR1 (GR1 Workshop)
- CXDLP (Creality Box)
- LGS (Longer Orange 10)
- LGS30 (Longer Orange 30)
- LGS120 (Longer Orange 120)
- LGS4K (Longer Orange 4K & mono)
- Flashforge SVGX
- ZIP (Generic / Phrozen Zip)
- VDA.ZIP (Voxeldance Additive)
- VDT (Voxeldance Tango)
- UVJ (Zip file format for manual manipulation)
- Image files (png, jpg, jpeg, jp2, tif, bmp, pbm, pgm, ras, sr)
Available printers for PrusaSlicer
See at: https://github.com/sn4k3/UVtools/tree/master/PrusaSlicer/printer
Available profiles for PrusaSlicer
- From 0.01mm to 0.20mm
- Light, Medium and Heavy Supports
Install and configure profiles under PrusaSlicer
Complete guide: https://github.com/sn4k3/UVtools/wiki/Setup-PrusaSlicer
Custom "Material Notes" and "Printer Notes" keywords for PrusaSlicer
Note that some variables will only work if the target format supports them, otherwise they will be ignored. Replace the "xxx" by your desired value in the correct units
- TransitionLayerCount_xxx: Sets the number of transition layers
- BottomLightOffDelay_xxx: Sets the bottom light off delay time in seconds
- LightOffDelay_xxx: Sets the light off delay time in seconds
- BottomWaitTimeBeforeCure_xxx: Sets the bottom wait time before cure in seconds
- WaitTimeBeforeCure_xxx: Sets the wait time before cure in seconds
- BottomWaitTimeAfterCure_xxx: Sets the bottom wait time after cure in seconds
- WaitTimeAfterCure_xxx: Sets the wait time after cure in seconds
- BottomLiftHeight_xxx: Sets the bottom lift height in millimeters
- BottomLiftSpeed_xxx: Sets the bottom lift speed in millimeters/minute
- LiftHeight_xxx: Sets the lift height in millimeters
- LiftSpeed_xxx: Sets the lift speed in millimeters/minute
- BottomWaitTimeAfterLift_xxx: Sets the bottom wait time after lift in seconds
- WaitTimeAfterLift_xxx: Sets the wait time after lift in seconds
- RetractSpeed_xxx: Sets the retract speed in millimeters/minute
- BottomLightPWM_xxx: Sets the bottom LED light power (0-255)
- LightPWM_xxx: Sets the LED light power (0-255)
- FILEVERSION_n: Sets the output file format version/revision
- FILEFORMAT_xxx: Sets the output file format extension to be auto converted once open on UVtools
File Convertion
https://github.com/sn4k3/UVtools/wiki/Sliced-File-Conversion
Command-line
UVtoolsCmd (Console) executable
Usage:
UVtoolsCmd [command] [options]
Options:
-q, --quiet Make output silent but exceptions error will still show
--no-progress Show no progress
--core-version Show core version information
--version Show version information
-?, -h, --help Show help and usage information
Commands:
run <input-file> <files> Run operations and/or scripts
convert <input-file> <target-type/ext> <output-file> Convert input file into a output file format by a known type or
extension []
extract <input-file> <output-folder> Extract file contents to a folder []
copy-parameters <input-file> <target-files> Copy print parameters from one file to another
print-properties <input-file> Prints available properties
print-layers <input-file> Prints layer(s) properties
print-gcode <input-file> Prints the gcode of the file if available
print-machines Prints machine settings
Note: On each command you can use -? to see specific command help and extra options
UVtools (UI) executable
- Open file(s):
- Syntax: UVtools <file1> [file2] [file3] ...
- Example 1: UVtools C:\model.osla
- Example 2: UVtools C:\model.zip D:\other_model.osla
- Note: When a invalid file is pass, the program will open as default.
- Redirect a command to UVtoolsCmd:
- Syntax: UVtools --cmd <commands ...>
- Example 1: UVtools --cmd convert C:\model.osla zip
- Note: This can be used when UVtoolsCmd is not directly exposed, for example if you are running via a .AppImage.
All commands will be redirected toUVtoolsCmd
and the UI will not run. It still shows the terminal window.
Legacy
The following commands are the old way and commands under the UI executable, they will be removed in near future, try to not use them, please prefer UVtoolsCmd.
- Convert a file into another type(s)
- Syntax: UVtools -c/--convert <input_file> <output_file1_or_ext> [output_file2_or_ext] ...
- Example 1: UVtools -c model.zip osla
- Example 2: UVtools -c model.zip model_converted.osla
- Example 3: UVtools --convert model.zip model_converted.osla model_converted.zcode
- Note: Nothing happen when providing wrong files, will quit.
- Extract a file to a folder
- Syntax: UVtools -e/--extract <input_file> [output_folder]
- Example 1: UVtools -e model.zip
- Example 2: UVtools -e model.zip mymodel
- Example 3: UVtools --extract model.zip .
- Note: Nothing happen when providing wrong files/folder, will quit.
- Export a file to a 3D mesh
- Syntax: UVtools --export-mesh <input_file> [output_mesh_file]
- Example 1: UVtools --export-mesh model.zip
- Example 2: UVtools --export-mesh model.zip model_exported.stl
- Note: Nothing happen when providing wrong files, will quit.
- Run a operation and save the file
- Syntax: UVtools --run-operation <input_file> <operation_file.uvtop>
- Example 1: UVtools --run-operation model.zip MyMorph.uvtop
- Note: Nothing happen when providing wrong files, will quit.
- Run a script and save the file
- Syntax: UVtools --run-script <input_file> <script_file.cs>
- Example 1: UVtools --run-script model.zip myScript.cs
- Note: Nothing happen when providing wrong files, will quit.
- Copy print parameters from one file to another
- Syntax: UVtools --copy-parameters <from_file> <to_file>
- Example 1: UVtools --copy-parameters model.zip otherfile.zip
- Note: Nothing happen when providing wrong files, will quit.
Requirements
Windows
Windows 7 SP1 or greater
- If on Windows 10/11 N or NK:
- Media Feature Pack must be installed
- Press Windows + R
- Type: appwiz.cpl (and press Enter key)
- Click on: Turn Windows features on or off
- Check the "Media Extensions" and click Ok
- If on Windows 10/11 N or NK:
4GB RAM or higher
1920 x 1080 @ 100% scale as minimum resolution
Linux
- 4GB RAM or higher
- 64 bit System
- 1920 x 1080 @ 100% scale as minimum resolution
Ubuntu/Mint/Debian/Similars
sudo apt-get update
sudo apt-get install -y libjpeg-dev libpng-dev libgeotiff-dev libgeotiff5 libdc1394-22 libavcodec-dev libavformat-dev libswscale-dev libopenexr24 libtbb-dev libgl1-mesa-dev libgdiplus wget
wget -qO - https://raw.githubusercontent.com/sn4k3/UVtools/master/Scripts/libdl-solver.sh | sudo bash
Arch/Manjaro/Similars
sudo pacman -Syu
sudo pacman -S openjpeg2 libjpeg-turbo libpng libgeotiff libdc1394 libdc1394 ffmpeg openexr tbb libgdiplus wget
wget -qO - https://raw.githubusercontent.com/sn4k3/UVtools/master/Scripts/libdl-solver.sh | sudo bash
RHEL/Fedora/CentOS
sudo yum update -y
sudo yum install -y https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
sudo yum install -y https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
sudo yum install -y libjpeg-devel libjpeg-turbo-devel libpng-devel libgeotiff-devel libdc1394-devel ffmpeg-devel tbb-devel mesa-libGL wget
wget -qO - https://raw.githubusercontent.com/sn4k3/UVtools/master/Scripts/libdl-solver.sh | sudo bash
To run UVtools open it folder on a terminal and call one of:
- Double-click UVtools file
./UVtools
bash UVtools.sh
dotnet UVtools.dll
[For universal package only, requires dotnet-runtime]- As a pratical alternative you can create a shortcut on Desktop
If you downloaded the .AppImage package variant you must set run permissions to it before attempt to run it:
Mac
- macOS 10.15 Catalina or higher
- 4GB RAM or higher
- For Mac M1 (ARM):
- Install homebrew if not already:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" brew analytics off
- Downgrade ffmpeg:
brew install cmake ffmpeg@4 brew link ffmpeg@4
- Reboot
- Install homebrew if not already:
To run UVtools open it folder on a terminal and call one of:
- Double-click UVtools file
./UVtools.app/Contents/MacOS/UVtools
bash UVtools.app/Contents/MacOS/UVtools.sh
- As a pratical alternative you can create a shortcut on Desktop
How to use
There are multiple ways to open your file in UVtools:
- Open UVtools and load your file (CTRL + O) (File → Open)
- Open UVtools and drag and drop your file inside window
- Drag and drop file into UVtools.exe
- Set UVtools the default program to open your files
Library → Developers
Are you a developer? This project include a .NET 6.0 library (UVtools.Core) that can be referenced in your application to make use of my work. Easy to use calls that allow you work with the formats. For more information navigate main code to see some calls.
Nuget package: https://www.nuget.org/packages/UVtools.Core
dotnet add package UVtools.Core
Scripting:
Develop and build from Source
Build directions
The fastest way to compile the project is by run the build/compile.bat
, however if you wish to develop with visual studio follow the following steps:
- Install Visual Studio and include .NET development support
- Install the .NET 6.0 SDK if not included on previous instalation
- Install the Avalonia for Visual Sutdio:
- Install the Wix Toolset: (Required only for MSI build, optional)
- Open UVtools.sln
- Build
TODO
- More file formats
- Clean up & performance (always)
- See features request under Github
Support my work / Donate
All my work here is given for free (OpenSource), it took some hours to build, test and polish the program. If you're happy to contribute for a better program and for my work i will appreciate the tip.
- Sponsor: https://github.com/sponsors/sn4k3
- PayPal: https://paypal.me/SkillTournament
Contributors
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- AnimatedGif (>= 1.0.5)
- BinarySerializer (>= 8.6.2.2)
- Emgu.CV (>= 4.5.5.4823)
- Emgu.CV.runtime.ubuntu.20.04-x64 (>= 4.5.4.4788)
- Emgu.CV.runtime.windows (>= 4.5.5.4823)
- K4os.Compression.LZ4 (>= 1.2.16)
- KdTree (>= 1.4.1)
- Microsoft.CodeAnalysis.CSharp.Scripting (>= 4.2.0)
- Microsoft.Toolkit.HighPerformance (>= 7.1.2)
- Portable.BouncyCastle (>= 1.9.0)
- System.Memory (>= 4.5.4)
- System.Reflection.TypeExtensions (>= 4.7.0)
- System.Text.Json (>= 6.0.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
4.4.3 | 96 | 10/4/2024 |
4.4.2 | 100 | 9/14/2024 |
4.4.1 | 117 | 8/19/2024 |
4.4.0 | 66 | 7/30/2024 |
4.3.2 | 156 | 4/19/2024 |
4.3.1 | 107 | 4/19/2024 |
4.3.0 | 127 | 4/6/2024 |
4.2.5 | 118 | 3/14/2024 |
4.2.4 | 108 | 3/2/2024 |
4.2.2 | 139 | 2/17/2024 |
4.2.1 | 111 | 2/10/2024 |
4.2.0 | 102 | 1/29/2024 |
4.1.0 | 109 | 1/19/2024 |
4.0.6 | 138 | 12/24/2023 |
4.0.5 | 114 | 12/12/2023 |
4.0.4 | 176 | 11/9/2023 |
4.0.3 | 173 | 10/19/2023 |
4.0.2 | 144 | 10/2/2023 |
4.0.1 | 129 | 9/18/2023 |
4.0.0 | 143 | 9/17/2023 |
3.15.1 | 140 | 6/30/2023 |
3.15.0 | 113 | 6/26/2023 |
3.14.4 | 191 | 6/21/2023 |
3.14.3 | 180 | 6/11/2023 |
3.14.2 | 193 | 6/7/2023 |
3.14.1 | 175 | 6/3/2023 |
3.14.0 | 204 | 5/31/2023 |
3.13.4 | 218 | 5/21/2023 |
3.13.3 | 178 | 5/8/2023 |
3.13.2 | 169 | 5/6/2023 |
3.13.1 | 240 | 4/27/2023 |
3.13.0 | 228 | 4/23/2023 |
3.12.3 | 282 | 3/31/2023 |
3.12.1 | 284 | 3/22/2023 |
3.12.0 | 321 | 2/27/2023 |
3.11.2 | 333 | 2/1/2023 |
3.11.1 | 313 | 1/31/2023 |
3.11.0 | 374 | 1/16/2023 |
3.10.0 | 370 | 1/3/2023 |
3.9.5 | 345 | 12/31/2022 |
3.9.4 | 342 | 12/29/2022 |
3.9.3 | 368 | 12/14/2022 |
3.9.2 | 352 | 12/11/2022 |
3.9.1 | 374 | 12/3/2022 |
3.9.0 | 398 | 12/1/2022 |
3.8.3 | 381 | 11/10/2022 |
3.8.2 | 427 | 11/5/2022 |
3.8.1 | 400 | 11/2/2022 |
3.8.0 | 428 | 10/29/2022 |
3.7.2 | 481 | 10/20/2022 |
3.7.1 | 439 | 10/17/2022 |
3.7.0 | 474 | 10/12/2022 |
3.6.8 | 483 | 10/4/2022 |
3.6.7 | 526 | 10/1/2022 |
3.6.6 | 503 | 9/20/2022 |
3.6.5 | 599 | 9/18/2022 |
3.6.4 | 555 | 9/15/2022 |
3.6.3 | 505 | 8/30/2022 |
3.6.2 | 515 | 8/22/2022 |
3.6.1 | 536 | 8/19/2022 |
3.6.0 | 515 | 8/17/2022 |
3.5.6 | 538 | 7/29/2022 |
3.5.5 | 542 | 7/19/2022 |
3.5.4 | 586 | 7/14/2022 |
3.5.3 | 593 | 7/7/2022 |
3.5.2 | 569 | 6/25/2022 |
3.5.1 | 552 | 6/24/2022 |
3.5.0 | 559 | 6/19/2022 |
3.4.3 | 602 | 5/21/2022 |
3.4.2 | 557 | 5/16/2022 |
3.4.1 | 579 | 5/2/2022 |
3.4.0 | 613 | 5/2/2022 |
3.3.2 | 627 | 4/14/2022 |
3.3.1 | 592 | 4/11/2022 |
3.3.0 | 622 | 4/10/2022 |
3.2.2 | 609 | 4/6/2022 |
3.2.1 | 632 | 4/2/2022 |
3.2.0 | 640 | 3/26/2022 |
3.1.1 | 493 | 3/21/2022 |
3.1.0 | 518 | 3/17/2022 |
3.0.0 | 492 | 3/12/2022 |
2.29.0 | 167 | 2/21/2022 |
2.28.1 | 144 | 2/15/2022 |
2.28.0 | 150 | 2/13/2022 |
2.27.7 | 177 | 1/27/2022 |
2.27.6 | 168 | 1/7/2022 |
2.27.5 | 166 | 1/5/2022 |
2.27.4 | 160 | 12/26/2021 |
2.27.3 | 176 | 12/24/2021 |
2.27.2 | 163 | 12/23/2021 |
2.27.1 | 171 | 12/22/2021 |
2.27.0 | 174 | 12/18/2021 |
2.26.0 | 194 | 12/6/2021 |
2.25.3 | 187 | 12/2/2021 |
2.25.2 | 2,882 | 11/25/2021 |
2.25.1 | 379 | 11/23/2021 |
2.25.0 | 434 | 11/18/2021 |
2.24.4 | 444 | 11/14/2021 |
2.24.3 | 462 | 11/13/2021 |
2.24.2 | 215 | 11/5/2021 |
2.24.1 | 185 | 11/3/2021 |
2.24.0 | 200 | 11/3/2021 |
2.23.6 | 193 | 10/12/2021 |
2.23.5 | 233 | 10/7/2021 |
2.23.4 | 222 | 10/4/2021 |
2.23.3 | 167 | 10/4/2021 |
2.23.2 | 241 | 10/2/2021 |
2.23.1 | 202 | 9/23/2021 |
2.23.0 | 196 | 9/21/2021 |
2.22.0 | 200 | 9/16/2021 |
2.21.1 | 192 | 9/6/2021 |
2.21.0 | 171 | 9/3/2021 |
2.20.5 | 173 | 8/31/2021 |
2.20.4 | 193 | 8/29/2021 |
2.20.3 | 183 | 8/28/2021 |
2.20.2 | 206 | 8/27/2021 |
2.20.1 | 175 | 8/26/2021 |
2.20.0 | 195 | 8/24/2021 |
2.19.5 | 205 | 8/22/2021 |
2.19.4 | 184 | 8/22/2021 |
2.19.3 | 189 | 8/22/2021 |
2.19.2 | 182 | 8/21/2021 |
2.19.1 | 200 | 8/19/2021 |
2.19.0 | 188 | 8/17/2021 |
2.18.0 | 195 | 8/12/2021 |
2.17.0 | 201 | 8/8/2021 |
2.16.0 | 191 | 8/1/2021 |
2.15.1 | 313 | 7/24/2021 |
2.15.0 | 296 | 7/16/2021 |
2.14.3 | 244 | 7/12/2021 |
2.14.2 | 356 | 7/11/2021 |
2.14.1 | 237 | 7/7/2021 |
2.14.0 | 262 | 7/3/2021 |
2.13.4 | 324 | 6/25/2021 |
2.13.3 | 217 | 6/12/2021 |
- (Add) Information about the loaded file when copying from the about box
- (Improvement) Tools are now disabled on the menu if not supported by the file format once each file load (#476)
- (Fix) Tool - Edit tool parameters: Overlap label on "per layer override" mode (#478)
- (Fix) Corruption of `GZip` and `Deflate` layer compression methods