From: Joaquim Rui de Castro Rodrigues (
Date: Thu Jan 30 2014 - 08:23:09 CST


You could create a proc and save it in your .vmdrc file for easy access. Something like (untested):

proc my_addfile {{trajectory} {stepsize]} {
  set first [expr [molinfo top get numframes] * $stepsize]
  mol addfile $trajectory step $stepsize first $first

and then call it using:
my_addfile trajectory.dcd 5

Rui Rodrigues

Enviado: quinta-feira, 30 de Janeiro de 2014 4:39
Assunto: vmd-l: Adding a keyword to mol addfile

When monitoring the progress of a running trajectory, I find myself typing out the following command quite regularly to add the new parts to what I already have loaded in VMD:

mol addfile trajectory.dcd step $stepsize first [expr [molinfo top get numframes] * $stepsize]

Just wondering if there’s a way to add this as a keyword without having to recompile VMD? Something like:

mol addfile trajectory.dcd step 5 fromlast