Windy Weather

Windy Weather Website

  • Contact me
  • My Bio
  • Skills and Tools

Import Molecule files into Max

Posted by windyweather on May 21, 2005
Posted in: 3ds max, Art, scripting.

Import molecule files for Chemistry or just for fun. Both PDB [Protein Database] and MOL format files are supported. This script works in both max and gmax.
The MDL Chime browser plug-in displays molecule files in the browser.
The VMD program displays molecules and supports a large number of rendering options.

However, while these programs incorporate a knowledge of chemistry, neither of these programs provides fine control over rendering and animation. The Import Molecule max script imports the molecule files and creates max geometry that can be rendered and animated at will.

Materials are created for each atom type. The atoms and bonds are grouped for each molecule and the name of the group is based on the name of the molecule. A material is created for each type of atom and the color is set according to the CPK standard. The materials can be changed in any way desired later on.

Unlike other rendering options, max allows far more options for rendering. Note the shadows and bump texture in the above picture and the lighting and rendering effects below. Of course all the animation capabilities of max are also available.

Rendering Options

Balls, Balls and sticks and sticks alone are supported.


Some molecule files don’t contain the right number of bonds. Note the molecule in the background above that the bonds don’t connect the atoms. This can be corrected by choosing the option for Sticks Both Ways as in the foreground.

Installation and Use

Copy the script to 3dsmax4scriptsstartup and copy the importMolColorTable.txt file to 3dsmax4scripts.

In the Utilities panel click MaxScript and then choose Import Molecule from the pulldown.

Choose the display type.

Choose the size and complexity of the parts. Careful about choosing too many segments or too many sides if there are a large number of atoms.

Set the scale of the atom. Atoms are by default only 1.0 unit in radius. 100 is a good scale for typical max work, but the choice will depend on the size of the molecule in the scene you are designing.

Click on Import molecule and choose either a MOL or PDB file.

Lighting and Rendering Effects

All the power of max can be used to render your molecules once you import them into max.

You can find this and other scripts at TurboSquid

Related

Posts navigation

← Stair plug-in
Work on the BathRoom Wall →
  • Search Site

  • Calendar

    May 2005
    S M T W T F S
    « Apr   Jul »
    1234567
    891011121314
    15161718192021
    22232425262728
    293031  
  • My Sites

    • TheWindyweather at YouTube
    • WindyWeather at SourceForge
  • 2Moons 3ds max Art Bug Info Computers Development Tools Evaluations Final Fantasy XIV Games Guild Wars Guild Wars 2 Helpful Hints Home Projects Humor Jade Dynasty Linux Mini Systems MMOs Mods and Fixes Opinion Photography Second Life Security Shareware Site History Support Questions Tera Video Web Tools World of Warcraft
  • Topics

    • Art
      • 3D CAD Software
      • 3ds max
        • RTRE
        • scripting
      • Fractals
      • Movies
    • Audiophile
    • Computers
      • Artificial Intelligence
      • Bug Info
      • Databases
      • Development Tools
      • Evaluations
      • Exploits
      • LibreOffice
      • Linux
      • Mini Systems
      • Mods and Fixes
      • Open Office
      • OpenGL
      • Playstation 3
      • Printing
      • Second Life
      • Security
      • Shareware
      • Smart Phones
      • Tutorials
      • Video Editing
      • Web Tools
    • EBooks
    • Games
      • Game Testing
      • MMOs
        • 2Moons
        • Aion
        • Allods
        • ArcheAge
        • Aura Kingdom
        • Dekaron
        • Elder Scrolls Online
        • Ether Saga
        • Final Fantasy XIV
        • Guild Wars
        • Guild Wars 2
        • Jade Dynasty
        • Neverwinter
        • Tera
        • WildStar
        • World of Warcraft
    • Helpful Hints
    • Home Projects
    • Humor
    • Legal Issues
    • Opinion
    • Pets
    • Photography
    • Privacy
    • Satire
    • Short Fiction
    • Site History
    • Support Questions
    • Uncategorized
    • Video
      • HDMI
      • Vizio
    • Windows
    • WWC Business
Blog at WordPress.com.