I'm sure it's just the "@" business again, Erik.

 colorkey ( "Carbon" , @ colorcarbon )

That says: "colorcarbon is the name of a variable, and the value of THAT
variable should be passed to my colorkey() function."

Don't think that is what you mean. You want this:

 colorkey ( "Carbon" , colorcarbon )

@ has just the following uses in Jmol now:

1) To indicate in a standard Jmol script command that we are inserting a
variable with @xxxx or a math expression as @{....}
2) To indicate in a standard Jmol script command  or in a Jmol math command
or expression a specific atom, @n, same as {atomindex=n}
3) To indicate that we want the value of a variable whose name is contained
in another:

   x = "y"
   y = 3

print y
>3
print x
>y
print @x
>3

You're doing that last bit. I believe there was a bug  in 11.8 that messed
that up.

Bob


On Fri, Apr 20, 2012 at 11:39 AM, Eric Martz <[email protected]>wrote:

> Dear Bob,
>
> This is not urgent.
>
> I have some manually-created scripts at Proteopedia for my Molecular
> Playground pages. They worked with 11.8.24 but they stop with an
> error in 12.3.22. It appears to me that somehow a color text string
> that I am passing as a function parameter is not working in 12.3.22.
> However, when I made a simple script to test that
> (colorecho-text.spt) it works fine in 12.3.22.
>
> So you can download the full scripts and PDB files from
> http://www.umass.edu/microbio/chime/temporary/colorecho-debug.zip
>
> Starting Jmol.jar from within the unzipped directory, if you drag
> MP_tamiflu.spt into 11.8.24 it works fine. If you drag it into
> 12.3.22 you will see the error.
>
> But if you drag colorecho-test.spt into 12.3.22 it works fine.
>
> Thanks for your help on this. If I have to make some changes in my
> manual scripts is is not a big deal. (This is not something that is
> propagated through thousands of state scripts in Proteopedia.)
>
> -Eric
>
>
>
> ------------------------------------------------------------------------------
> For Developers, A Lot Can Happen In A Second.
> Boundary is the first to Know...and Tell You.
> Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
> http://p.sf.net/sfu/Boundary-d2dvs2
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>



-- 
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to