You can always say
x = getProperty('stateinfo")
or
x = getProperty("stateinfo", "modelstate")
which loads x with the state script or part of it.
Then you could modify it and execute
script inline @x
Bob
On Wed, Jun 17, 2009 at 11:44 AM, pim schravendijk
<[email protected]>wrote:
> Thank you! This should probably have been in the jmol-user mailing
> list, sorry for that, moved it now.
>
> One related question: I would like to apply a saved state to the next
> frame in the loop, but obviously not load the same frame again. Is
> there a way to access/change individual properties of a saved state?
>
> On 6/17/09, Robert Hanson <[email protected]> wrote:
> > The construct:
> >
> > $ load trajectory ({...@i})
> >
> > is not valid, because ({...}) are evaluated at compile time, and @i has
> to
> > be evaluated at run time.
> >
> > You should be able to do this:
> >
> > i = 0
> > load trajectory @{ "({" + i + "})" } ....
> >
> > because that will evaluate the string "({0})" at run time, and that will
> be
> > turned into a bitset.
> >
> >
> >
> >
> > On Wed, Jun 17, 2009 at 5:24 AM, pim schravendijk
> > <[email protected]>wrote:
> >
> >> Hi!
> >>
> >> it seems that the scriptevaluator does not recognize my bitset as a
> >> bitset when I try to put a variable in it.
> >>
> >> It goes wrong in svn release 11.7.42_dev and all versions before that I
> >> tried:
> >>
> >> $ load trajectory ({0})
> >> "/home/schraven/WORK/LAMMPS/goldwire_20090610/split.0001"
> >>
> >> ... Works!
> >>
> >> $ var i = 0
> >> $ echo @i
> >> 0
> >>
> >> ... fine so far
> >>
> >> $ load trajectory ({...@i})
> >> "/home/schraven/WORK/LAMMPS/goldwire_20090610/split.0001"
> >> script ERROR: filename expected
> >> ----
> >> load trajectory >> { << ( 0 ) }
> >> "/home/schraven/WORK/LAMMPS/goldwire_20090610/split.0001"
> >>
> >> kaputt! :(
> >>
> >> I am taking a look at the code now, but since Bob made a pretty
> >> complex scripting machine out of Jmol, this might be troublesome :)
> >>
> >> --
> >> Greetings, Pim
> >> http://www.molmod.com
> >>
> >>
> >>
> ------------------------------------------------------------------------------
> >> Crystal Reports - New Free Runtime and 30 Day Trial
> >> Check out the new simplified licensing option that enables unlimited
> >> royalty-free distribution of the report engine for externally facing
> >> server and web deployment.
> >> http://p.sf.net/sfu/businessobjects
> >> _______________________________________________
> >> Jmol-developers mailing list
> >> [email protected]
> >> https://lists.sourceforge.net/lists/listinfo/jmol-developers
> >>
> >
> >
> >
> > --
> > 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
> >
>
>
> --
> Greetings, Pim
> http://www.molmod.com
>
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables unlimited
> royalty-free distribution of the report engine for externally facing
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> 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
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users