Files
UVtools/Scripts/UVtools.Python/README.md
T
Tiago Conceição 6065d8f808 Python docs
2022-04-07 00:16:07 +01:00

1.8 KiB

UVtools Python Scripting

Logo

Requirements

  • Python 3.x
  • Pythonnet 3.x
    • pip install git+https://github.com/pythonnet/pythonnet
  • .NET 6.0 SDK
  • UVtools:
    • Windows: Must install MSI
    • Linux and macOS: Need to register UVTOOLS_PATH (Environment Variable)
  • Near your .py script:
    • UVtoolsBootstrap.py wget https://github.com/sn4k3/UVtools/blob/master/Scripts/UVtools.Python/UVtoolsBootstrap.py
    • UVtools.runtimeconfig.json wget https://github.com/sn4k3/UVtools/blob/master/Scripts/UVtools.Python/UVtools.runtimeconfig.json

Bootstrap

#!/usr/bin/env python
"""print_layers.py: Print all layers from a file."""
__author__      = "Someone"
__copyright__   = "Copyright 2022, Planet Earth"
from UVToolsBootstrap import *

# Your code here

Documentation

Support

https://github.com/sn4k3/UVtools/discussions/categories/scripts

Contribute with your scripts

If you make a usefull script and want to contribute you can share and publish your script under Github - Discussions - Scripts.