WWW Site - Documentation - Tools

vmd tool


Control VMD from python.


The vmd tool is a simple wrapper on the VMD visualization package, a popular tool for visualizing snapshots from molecular dynamics simulations.

The vmd constructor invokes VMD in its own window. Data can be passed to it for visualization via the new(), data(), replace(), and append() methods. The other methods permit more specialized interactions with VMD through its command syntax.


v = vmd()		       start up VMD
v.stop()		       shut down VMD instance
v.clear()		       delete all visualizations 
v.rep(style)		       set default representation style. One of
			       (Lines|VDW|Licorice|DynamicBonds|Points|CPK)[,type])   	       load new file (default file type 'lammpstrj')[,atomstyle])       load new data file (default atom style 'full')
v.replace(file[,type])	       replace current frames with new file
v.append(file[,type]) 	       append file to current frame(s)
v.set(snap,x,y,z,(True|False)) set coordinates from a snapshot to new or current frame 
v.frame(frame)		       set current frame
v.flush()		       flush pending input to VMD and update GUI		       read Tcl script file (e.g. saved state) 
v.enter()		       enter interactive shell
v.debug([True|False])	       display generated VMD script commands? 

Related tools:



Python pexpect package.