From: Barry Isralewitz (barryi_at_ks.uiuc.edu)
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.

http://www.ks.uiuc.edu/Research/vmd/script_library/scripts/view_change_render/

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

 
                Cheers,

                        Barry

> On Feb 19, 2018, at 4:15 AM, Rune Thomas Kidmose <rtk_at_mbg.au.dk> 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 <norman.geist_at_uni-greifswald.de>:
>>
>> What about the "Visualization->View Change Renderer" plugin already shipped with VMD?
>>
>>> -----Ursprüngliche Nachricht-----
>>> Von: owner-vmd-l_at_ks.uiuc.edu [mailto:owner-vmd-l_at_ks.uiuc.edu] Im
>>> Auftrag von Rune Thomas Kidmose
>>> Gesendet: Montag, 19. Februar 2018 08:19
>>> An: vmd-l_at_ks.uiuc.edu
>>> 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
email: barryi_at_ks.uiuc.edu   http://www.ks.uiuc.edu/~barryi