VMD-L Mailing List
From: Ajasja Ljubetič (ajasja.ljubetic_at_gmail.com)
Date: Tue Dec 20 2016 - 07:29:58 CST
I guess, you would like to redraw he arrows after the frame changes.
You can do this using TCL callbacks
In particular see vmd_frame(molid).
An example that draws the size of the unit cell for each frame is here
On 20 December 2016 at 13:41, Ashar Malik <asharjm_at_gmail.com> wrote:
> since you are drawing a new thing every frame and don't need to see the
> previous thing in the current selection - you should use
> draw delete all
> I think this should delete everything drawn and redraw at the new
> positions you pass it - which I am guessing is coming from the loop.
> (If you are drawing all this in a loop and deleting in the same iteration
> - it might get drawn and deleted too fast -- ??? Not sure if that is what
> you want ?? )
> Hope this helps. Otherwise write back.
> On Wed, Dec 21, 2016 at 1:28 AM, Amit Gupta <amit__at_outlook.in> wrote:
>> Yes I realized it and added it later on. Now I can see all the arrows,
>> but together! I mean they are not changing with frame, rather all arrows
>> from all frames are visible all the time
>> *From:* Ashar Malik <asharjm_at_gmail.com>
>> *Sent:* Tuesday, December 20, 2016 5:49:33 PM
>> *To:* Amit Gupta
>> *Cc:* vmd-l_at_ks.uiuc.edu
>> *Subject:* Re: Fw: vmd-l: Draw arrows in trajectory file
>> I think this maybe because you are not updating your selections properly--f46d0421a859639bd70544170853--