I am working in python and i want to get a series of 3D images for the molecules I'm using.
I have .mol files stored in my folder and for each of them I would like to obtain a 3D render of its 'stick' representation. With py3Dmol i can get a 3D structure of the molecule, but i can only view it and it is not stored anywhere in python. Here a source (from the author of the package) explaining why images cannot be saved
Do you have any suggestion on how to do automatize the creation of 3D structure images for a set of molecule?
OK , here my attempt, please have a look at Multiple PyMOL Instances in Python Script and Launching From a Script that explains how this works:
Code :
Note that the molecules are oriented on the screen by
pymol.cm.orient()that as per the wiki:AS an example here the pic for GLC from Chemical Components in the PDB GLC : Summary