VMD-L Mailing List
From: Rune Thomas Kidmose (rtk_at_mbg.au.dk)
Date: Mon Feb 19 2018 - 04:15:43 CST
- Next message: Suresh Ghimire: "salvation of heavy water"
- Previous message: Norman Geist: "AW: Obtaining VMD view matrices for tcl script"
- In reply to: Norman Geist: "AW: Obtaining VMD view matrices for tcl script"
- Next in thread: Barry Isralewitz: "Re: Obtaining VMD view matrices for tcl script"
- Reply: Barry Isralewitz: "Re: Obtaining VMD view matrices for tcl script"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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
>>
>
>
- Next message: Suresh Ghimire: "salvation of heavy water"
- Previous message: Norman Geist: "AW: Obtaining VMD view matrices for tcl script"
- In reply to: Norman Geist: "AW: Obtaining VMD view matrices for tcl script"
- Next in thread: Barry Isralewitz: "Re: Obtaining VMD view matrices for tcl script"
- Reply: Barry Isralewitz: "Re: Obtaining VMD view matrices for tcl script"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]