VMD-L Mailing List
From: Eduard Schreiner (eduard.schreiner_at_gmail.com)
Date: Thu Jan 13 2011 - 10:33:34 CST
- Next message: dhacademic: "problem in extracting frame number"
- Previous message: John Stone: "Re: problem in extracting frame number"
- In reply to: dhacademic: "problem in extracting frame number"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
try to add "waitfor all" at the end of your "mol addfile .. " command
eddi
On Thu, Jan 13, 2011 at 9:45 AM, dhacademic <dhacademic_at_gmail.com> wrote:
> Hi VMD user,
>
> I meet the problem in extracting the number of frames from amber trajectory.
>
> Following is my script "myframe.tcl". When I run "vmd -e myframe.tcl", the
> calculated frame number is 8. But when I use the first two lines of the
> script to load the trajectory, and then type in the last four lines in TCL
> Console, the frame number is 1000. In reality, 1000 is the correct number.
>
> I want to know is there anything wrong?
>
> Best,
> Hao
>
>
> mol new out.top type parm7
> mol addfile out.mdcrd type crdbox
>
> proc myframe {{mol top}} {
> set num_steps [molinfo $mol get numframes]
> }
> myframe
>
>
> 2011-01-13
> ________________________________
> dhacademic
-- -- ============================================================================= Eduard Schreiner Theoretical and Computational Biophysics Group NIH Resource for Macromolecular Modeling and Bioinformatics Beckman Institute for Advanced Science and Technology University of Illinois, 405 N. Mathews Ave., Urbana, IL 61801 Phone: 217-244-4361 Fax: 217-244-6078 http://www.ks.uiuc.edu/~eschrein/ =============================================================================
- Next message: dhacademic: "problem in extracting frame number"
- Previous message: John Stone: "Re: problem in extracting frame number"
- In reply to: dhacademic: "problem in extracting frame number"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]