These are the scripts I use to make 2-sided PCBs on an SLA printer. The tool creates a .pw0Img mask directly from an .svg image of the PCB, bypassing the process of creating an .stl file. As a result, the output slice file is much lighter, usually around 100KB.
Currently, the script has been tested only on the Anycubic Photon Mono M7 Max. Theoretically, it can also be used for the Anycubic Photon Mono M7 Pro and Anycubic Photon Mono M7. Other models will be added in the future.
If you have an untested printer model, please contact me and I will try to adapt the code for it.