From: Barry Isralewitz (
Date: Wed Feb 21 2018 - 13:55:31 CST

Hi Ruki,

   The script that is the ancestor of of the current View Change Render plugin is still available from the VMD script library. Caveats: has limitations compared to the current View Change Render plugin; can't exchange files/data with the current View Change Render plugin or with the Movie Maker plugin.

The documentation at the above link include example uses in scripting.



> On Feb 19, 2018, at 4:15 AM, Rune Thomas Kidmose <> wrote:
> Yes that is one of the two plugins I have tried.
> I can’t seem to get it to work via a script though. It works really well from the gui.
> Ruki
>> Den 19. feb. 2018 kl. 09.39 skrev Norman Geist <>:
>> What about the "Visualization->View Change Renderer" plugin already shipped with VMD?
>>> -----Ursprüngliche Nachricht-----
>>> Von: [] Im
>>> Auftrag von Rune Thomas Kidmose
>>> Gesendet: Montag, 19. Februar 2018 08:19
>>> An:
>>> Betreff: vmd-l: Obtaining VMD view matrices for tcl script
>>> Hi,
>>> I have started using VMD more and more for rendering and animations, and I
>>> do this using tcl scripts.
>>> Currently when I need to get a specific view I use the molinfo command, e.g.
>>> molinfo top get center_matrix
>>> I proceed doing this on the: scale_matrix, rotate_matrix and global_matrix.
>>> I then add the view to my script like this:
>>> mol info set {center_matrix} {{{ {matrix numbers} }}} etc.
>>> and while this approach works, it gets a bit tedious to do every time I change
>>> the view slightly. So I was wondering if there is an easier way of obtaining
>>> and setting the view via a tcl script?
>>> I have found the view_matrix command, which I though was a one-step
>>> solution for obtaining the view, but I am unable to set the view_matrix via
>>> my script.
>>> I have seen a couple of plugins which helps with remembering and setting
>>> views if working from the GUI, but I have not been able to use them from my
>>> scripts.
>>> Currently I made a simpel tcl script which writes the 4 above mentioned
>>> matrices out to a file, in a format I can directly insert into my script, while this
>>> helps, I just wanted to make sure I am not missing some obvious way of
>>> doing this.
>>> In case ppl are interested, the script I made is basically this (showing only for
>>> center matrix)
>>> set file [open view_matrices.log w]
>>> set c [molinfo top get center_matrix]
>>> puts $file “molinfo top set {center_matrix}{$c}”
>>> close $file
>>> Cheers
>>> Ruki

Barry Isralewitz
Theoretical and Computational Biophysics Group
3043 Beckman, University of Illinois at Urbana-Champaign
Office Phone: (217) 244-1612