Giter Club home page Giter Club logo

3d-print-molecules's Introduction

3D Print Molecules in Colour

Python based program which makes easier to 3D print moleculs in muliticolour by automatical separation and export of atoms of each kind.

Program output and PYMOL output comparison

Usage

GUI Description

  1. Eneter molecule name, CID number or PDB code into the text filed or select your own PDB or SDF file with atom coordinates.
  2. Fetch data using Enter key or apropriate button.
  3. Check folder for savin the output file.
  4. Choose molecule 3D representation for export (now only VDW - Van der Waals model - spheres).
  5. Check molecule information in the table.
  6. Set quality of the model (be aware of large file protection - program automatically sets low quality for molecules with high number of carbons).
  7. Generate the model!

Example usage

  1. Import to PrusaSlicer all STL files at once! And confirm "Multi part object" -> YES. Molecule for 3D printing in PrusaSlicer (left) and in PyMOL (right)

  2. The script only exports models for all present atoms separatelly and storers them into a ZIP file

  3. Scale the molecules, set the colours for multicolour printing and slice the model.

  4. 3D print your molecule!

To do

  • 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)

Common problems

  • Not installed Python - see links
  • Default output folder selected incorrectly

Pyinstaller

Use the pyinstaller command insiode the "pyinstaller" folder (cd version2/pyinstaller)

macOS: pyinstaller --onefile --add-data "Settings.json:." --windowed --name "3D print Multi-color Molecules" --icon=../../graphical/default_icon.icns --debug=all ../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

Links

3d-print-molecules's People

Contributors

kubiv avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.