VMD-L Mailing List
From: Ajasja Ljubetič (ajasja.ljubetic_at_gmail.com)
Date: Fri Nov 29 2013 - 06:39:48 CST
- Next message: Andrew DeYoung: "Why are all carbon atoms lumped into C in the Name category in the colors dialog?"
- Previous message: chandrakala gowda: "Re: loading pdb files from multiple directories"
- In reply to: chandrakala gowda: "loading pdb files from multiple directories"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
This is a TCL catch. {} will not do any command or variable expansion.
Try with
set cd "/work/test_0$i"
Regards,
Ajasja
On 29 November 2013 11:43, chandrakala gowda <chandrakala.gowda_at_gmail.com>wrote:
> Hi all,
>
> I have to load pdb files from multiple directories. I tried to set the cd
> to change within a loop
>
> for {set i 1} {$i < 12} {incr i} {
> set cd {/work/test_0$i}
> mol new $cd/xyz.pdb
> mol delrep 0 top
> mol representation NewCartoon
> mol color Chain
> mol addrep top
> }
>
> I get the following error message
>
> Could not read file /work/test_0$i/final.pdb
>
> how to I format the code to include a variable name in the 'cd'
> I am grateful if someone could resolve this issue for me.
>
> Chandrakala
>
>
>
>
>
- Next message: Andrew DeYoung: "Why are all carbon atoms lumped into C in the Name category in the colors dialog?"
- Previous message: chandrakala gowda: "Re: loading pdb files from multiple directories"
- In reply to: chandrakala gowda: "loading pdb files from multiple directories"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]