VMD-L Mailing List
From: Nima Emadi (deeepsky_at_gmail.com)
Date: Thu Jan 28 2016 - 14:50:50 CST
- Next message: Nima Emadi: "Re: making a movie in a tcl script using graphics commands"
- Previous message: Josh Vermaas: "Re: making a movie in a tcl script using graphics commands"
- In reply to: Nima Emadi: "making a movie in a tcl script using graphics commands"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
The last part of the message was clipped by the mailing-list program.
here is the full version:
Dear all,
I want to make a movie from a given MD trajectory of some cylindrical rigid
particles.
Using graphics command in tcl, I'm able to produce a single snapshot.
However I am stuck when I want to add a new frame to my molecule.
Simplified version of what I have in my tcl script (for just one particle
which moves along z axis) is:
color Display Background white
mol new
graphics 0 color 7
graphics 0 cylinder {0 0 0} {0 0 1} radius 0.4 resolution 30 filled yes
animate dup 0
graphics 0 delete all
graphics 0 cylinder {0 0 0.5} {0 0 1.5} radius 0.4 resolution 30 filled yes
This draws the new cylinder in all frames. How can I restrict the drawing
to the current frame and keep all previous frames intact?
Thanks,
Nima
On Thu, Jan 28, 2016 at 8:10 PM, Nima Emadi <deeepsky_at_gmail.com> wrote:
> Dear all,
>
> I want to make a movie from a given MD trajectory of some cylindrical rigid
> particles.
>
> Using graphics command in tcl, I'm able to produce a single snapshot.
> However I am stuck when I want to add a new frame to my molecule.
>
> Simplified version of what I have in my tcl script (for just one particle
> which moves along z axis) is:
>
> color Display Background white
> mol new
> graphics 0 color 7
> graphics 0 cylinder {0 0 0} {0 0 1} radius 0.4 resolution 30 filled yes
> animate dup 0
> graphics 0 delete all
> graphics 0 cylinder {0 0 0.5} {0 0 1.5} radius 0.4 resolution 30 filled yes
- Next message: Nima Emadi: "Re: making a movie in a tcl script using graphics commands"
- Previous message: Josh Vermaas: "Re: making a movie in a tcl script using graphics commands"
- In reply to: Nima Emadi: "making a movie in a tcl script using graphics commands"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]