Hi there,
This script generates a basic VRML model of a molecule from the Materials Visualizer datamodel. It is limited to rendering in CPK only but does maintain the colors of the atoms.
If someone wishes to extend this to include ball and stick representations, I would be happy to chat with you.
Please note that this will require a VRML viewer that displays VRML97 (or VRML 2).
Best regards,
Stephen