I'm not sure if this is relevant because I don't fully understand the context 
of this email chain. I'll offer this thought anyway.

A while back (years) there was a discussion of global vs local Jmol variables. 
I also did not fully understand this discussion!  Nevertheless, this made all 
my global variable issues go away:

In the load script, I define a number of variables as empty containers in 
waiting. These empty containers appear to be fully global. When used after 
loading, they can be filled in one script and used in another script much later.

Maybe not relevant because I'm not sure of the complete scrip context of this 
discussion, but there it's is...

Best, Otis
--
Otis Rothenberger
CheMagic.com

> On Jan 8, 2015, at 7:53 AM, Nelson Liu <nelson.liu.2...@gmail.com> wrote:
> 
> Hi Rolf,
> Interesting that direct variable substitution doesn't work, thanks again!
> 
> 
>> On Thu Jan 08 2015 at 4:48:26 AM Rolf Huehne <rhue...@fli-leibniz.de> wrote:
>> On 01/08/2015 01:39 PM, Nelson Liu wrote:
>> > Ah, I thought this was a continuation of the previous email, but i guess I
>> > just hit reply. Can I use @i to select residue numbers? I looked in the
>> > documentation of the select statement, and it seemed like there was no
>> > explicit property for residue numbers.
>> >
>> If you provide directly a number it works. But apparently it doesn't
>> work with variables. The property for the residue number is the same as
>> used for the '.label()' function in the other thread:
>> 
>>    select resno=@i and chain=A
>> 
>> Regards,
>> Rolf
>> 
>> --
>> 
>> Rolf Huehne
>> Postdoc
>> 
>> Leibniz Institute for Age Research - Fritz Lipmann Institute (FLI)
>> Beutenbergstrasse 11
>> 07745 Jena, Germany
>> 
>> Phone:   +49 3641 65 6205
>> Fax:     +49 3641 65 6210
>> E-Mail:  rhue...@fli-leibniz.de
>> Website: http://www.fli-leibniz.de
>> 
>>            Scientific Director: Prof. Dr. K. Lenhard Rudolph
>>         Head of Administration: Dr. Daniele Barthel
>> Chairman of Board of Trustees: Dennys Klein
>> 
>> VAT No: DE 153 925 464
>> Register of Associations: No. 230296, Amtsgericht Jena
>> Tax Number: 162/141/08228
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming! The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is your
> hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now. http://goparallel.sourceforge.net
> _______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to