From: Samuel Flores (samuel.flores_at_yale.edu)
Date: Thu Jun 16 2005 - 22:01:23 CDT
Cool, this helps.
Only remaining problem:
Which of the various render methods will give me a format that I can easily
post on the web for viewing? Snapshot give me a nice rgb, but snapshot
won't work in vmd's batchmode because there is no screen to take a shot of!
Sam
-----Original Message-----
From: Blake Charlebois [mailto:bdc_at_mie.utoronto.ca]
Sent: Thursday, June 16, 2005 10:16 PM
To: 'Samuel Flores'; namd-l_at_ks.uiuc.edu
Subject: RE: namd-l: tcl question
The mkrep procedure below is not quite as efficient and general as it could
be, but it has worked well for me. By typing "logfile console" in tkcon, you
can have vmd record tcl commands for your subsequent actions. This is
quicker than using the manual, though it is not always perfectly clear what
is going on. You can use this to get the render command you are looking for.
proc mkrep {stxt coltxt reptxt {molid top}} {
set rn [molinfo $molid get numreps]
mol addrep $molid
mol modcolor $rn $molid $coltxt
mol modselect $rn $molid $stxt
mol modstyle $rn $molid $reptxt
}
mol showrep top [expr [molinfo top get numreps]-1] 0
mkrep "protein" "Structure" "Cartoon 2.1 12.0 3.0"
-----Original Message-----
From: owner-namd-l_at_ks.uiuc.edu [mailto:owner-namd-l_at_ks.uiuc.edu] On Behalf
Of Samuel Flores
Sent: June 16, 2005 9:03 PM
To: 'Samuel Flores'; 'Luis Rosales'; namd-l_at_ks.uiuc.edu
Subject: namd-l: tcl question
I wonder if anyone can help me...
I am trying to use VMD for a simple purpose. I want to have my server take
a pdb file, read it into VMD, display it using the Cartoon style, color by
Structure, and then save the resulting graphic to a file. I want to write a
script to do this. Is there a good reference? I can read in the file but
don't know how to tell it to display in Cartoon style.
Many thanks
Sam
This archive was generated by hypermail 2.1.6 : Wed Feb 29 2012 - 15:39:34 CST