VMD-L Mailing List
From: Axel Kohlmeyer (akohlmey_at_gmail.com)
Date: Wed Jul 24 2019 - 12:24:05 CDT
- Next message: Bassam Haddad: "Scripting with volumes"
- Previous message: Lara rajam: "Re: sub : considering waters with in 5A of solute"
- In reply to: Lara rajam: "Re: sub : considering waters with in 5A of solute"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
On Wed, Jul 24, 2019 at 12:42 PM Lara rajam <lara.4884_at_gmail.com> wrote:
> Thanks for the e-mail
> I tried a TCL scripting as below
> The issue is I am not able to write the coordinate of the selection and
> the water within 5A
>
could any one point out where is the issue
>
set num1 [$writepdb expr{$b + $a}]
>
>
>
this statement makes no sense at all. there is no definition of a variable
$writepdb and it has to point to some kind of function in the first place.
furthermore $a and $b variables with the names of atomselect functions and
thus as strings cannot be used in a numerical expression: "expr {$b + $a}"
would expand into something like "expr { atomselect3 + atomselect2 }" that
should cause a syntax error.
so it looks like you need to learn some more TCL and VMD scripting.
axel.
>
> ----- Thanks in advance
>
-- Dr. Axel Kohlmeyer akohlmey_at_gmail.com http://goo.gl/1wk0 College of Science & Technology, Temple University, Philadelphia PA, USA International Centre for Theoretical Physics, Trieste. Italy.
- Next message: Bassam Haddad: "Scripting with volumes"
- Previous message: Lara rajam: "Re: sub : considering waters with in 5A of solute"
- In reply to: Lara rajam: "Re: sub : considering waters with in 5A of solute"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]