Is there a way that I'm not seeing (I'm sure there must be) to test the size
(in number of atoms) of the current selection?

I've tried:

select ligand;
natoms = selected.size;

This sets natoms to "0", while:

select {:Z};
natoms = {:Z}.size;

sets natoms to the proper atomcount of chain Z.  "center selected" works as
does "center {:Z}", so I admit to leaping to the conclusion that "selected"
could be addressed similarly....

Cheers,
Tom
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to