that's right -- by setting appendNew false, what you are saying is, "Add
these atoms to the last model." So all atoms will have model index 0. If you
want the new atoms to be in a new model, you have to use
set appendNew TRUE
which is the default.
Bob
On Fri, May 1, 2009 at 2:11 PM, Aidar Mahmutov <[email protected]> wrote:
> Hello, Robert
>
> > source code questions should go to jmol-developers, please.
> Ok, just thought that it's common question.
>
> > viewer.getModelSet().getAtomModelIndex(i) // actually in
> modelSet.AtomCollection.java
> Tried this too. Let describe commmon picture: I load "TCBEWREA.mol" that
> have 49 atoms, then "aspirin.mol" with 21 atoms. Both mol files from Jmol
> site. Setting appendNew false; Loading "TCBEWREA.mol", append load (through
> script) "aspirin.mol".
>
> So, getAtomModelIndex(1) and getAtomModelIndex(68) gives "0" modelIndex.
> Via debug same thing: all atoms have "0" modelIndex. But there're 2 groups,
> that include index distanse of loaded models... Can use only them?
>
> There is something with "set appendNew false;". Model index only for
> separate frames?
>
>
>
>
> ------------------------------------------------------------------------------
> Register Now & Save for Velocity, the Web Performance & Operations
> Conference from O'Reilly Media. Velocity features a full day of
> expert-led, hands-on workshops and two days of sessions from industry
> leaders in dedicated Performance & Operations tracks. Use code vel09scf
> and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
> _______________________________________________
> 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
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations
Conference from O'Reilly Media. Velocity features a full day of
expert-led, hands-on workshops and two days of sessions from industry
leaders in dedicated Performance & Operations tracks. Use code vel09scf
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers