You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @GwydionJon - although the underlying Mol3d.js component does support .xyz files, the Molecule3dViewer component does not support them out of the box at this time. I have found occasional success using other tools like OpenBabel to convert other file formats to PDB and using those with our PDB parser utility to fill in the blanks between data.
If you specifically need to visualize xyz data, I would recommend the Speck component which does include direct support for this filetype, although it isn't as feature-rich as Mol3d.
As far as custom data, that will work as long as it's supplied in the exact format that the components expects. Here's a slightly modified version of your code above that displays the 3 atoms and a bond:
Greetings,
first of I am not sure if this here is the right channel for this question, but i don't know where else to post it.
I'm currently at a bit of a loss and don't really know where else to ask this.
Is there a method to use an .xyz molecule file as input for the Molecule3dViewer?
Or at least a method to have custom data as an input?
Currently this is what I'm trying to do, but it just produces an empty page.
(The example pdb file from the documentation works fine.
I also tried just using the first few lines of the example file, and their corresponding bonds, this also doesn't seem to work.
Any help would be appreciated.
The text was updated successfully, but these errors were encountered: