Python based program which makes easier to 3D print moleculs in muliticolour by automatical separation and export of atoms of each kind.
- Eneter molecule name, CID number or PDB code into the text filed or select your own PDB or SDF file with atom coordinates.
- Fetch data using Enter key or apropriate button.
- Check folder for savin the output file.
- Choose molecule 3D representation for export (now only VDW - Van der Waals model - spheres).
- Check molecule information in the table.
- Set quality of the model (be aware of large file protection - program automatically sets low quality for molecules with high number of carbons).
- Generate the model!
-
Import to PrusaSlicer all STL files at once! And confirm "Multi part object" -> YES.
-
The script only exports models for all present atoms separatelly and storers them into a ZIP file
-
Scale the molecules, set the colours for multicolour printing and slice the model.
-
3D print your molecule!
- Auto import to slicer
- export selection butttons (modify what exactly do you want to export, quality settings ...)
- custom relative size of bond or atom
- add a settings tab (manualy edit paths for PyMOL and Open Babel)
- Not installed Python - see links
- Default output folder selected incorrectly
Use the pyinstaller command insiode the "pyinstaller" folder (cd version2/pyinstaller
)
macOS: pyinstaller --onefile --windowed --add-data "Settings.json:." --name "3D print Multi-color Molecules" --icon=../../graphical/default_icon.icns --debug=all --noconsole --exclude=PyQt6 --clean --noupx --strip --optimize=2 ../src/main.py
Windows: pyinstaller --onefile --add-data "Settings.json;." --windowed --name "3D print Multi-color Molecules" --icon=..\..\graphical\default_icon.ico --debug=all ..\src\main.py
pyinstaller -y --clean -F -w -i graphical/default_icon.icns --debug=all src/main.py
-
Python for Windows - https://apps.microsoft.com/detail/python-3-12/9NCVDN91XZQP
-
PrusaSlicer - https://www.prusa3d.com/page/prusaslicer_424/
-
PubChem - https://pubchem.ncbi.nlm.nih.gov
-
RCSB PDB Protein Data Bank - https://www.rcsb.org