Software Projects

VMD Tcl Scripts

Posted in Uncategorized by rmt on March 9, 2011

The following are some small Tcl scripts for VMD. These scripts demo some graphics and show the conformational change in hemoglobin when the heme is bound. The scripting syntax for VMD is poorly documented, so these scripts may be of use to people trying to get their scripts working.

Start VMD and do Extensions->Tk Console

In the console, CD to the working folder

Open Graphics->Representations to show graphics info

source 1.tcl

source 2.tcl

source 3.tcl

source 4.tcl


display resetview
display update on
display update ui
mol load pdb 1GZX.pdb
mol modstyle 0 0 NewCartoon
mol modcolor 0 0 Chain


mol selection heme
mol addrep 0
mol modstyle 1 0 licorice
mol modcolor 1 0 element


mol selection "oxygen within 4 of heme"
mol addrep 0
mol showrep 0 0 off
mol modstyle 2 0 VDW
mol modcolor 2 0 element


mol showrep 0 2 off
mol showrep 0 0 on
display resetview
mol selection polar
mol addrep 0
mol modstyle 3 0 dotted
mol modcolor 3 0 conformation

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s