print getproperty("auxiliaryinfo","models", 1,"symmetryOperations")
should do it. You'll have to parse that.
Or you can use
show symmetry
Symmetry Information:
model #1.1; name=global
Spacegroup: P 32 2 1
Number of symmetry operations: 6
Symmetry Operations:
x,y,z
y,x,-z-1/3
-y,x-y,z-1/3
-x,-x+y,-z+1/3
-x+y,-x,z+1/3
x-y,-y,-z
and parse that, for example:
x = script("show symmetry").split("operations: ")[2].split("\n")[1]
print x
This takes the next word in the line after the "operations: " text,
which will be the number of symmetry operations.
Bob
Eran Hodis wrote:
> Dear Bob,
>
> The biomolecule filter is extremely useful, and I think you've touched
> on a very important issue here.
>
> I understand that selecting different atom groups generated by the
> symmetry operations is done by using "select symop=X".
>
> This is very nice. Is there a way to return how many symmetry groups
> exist in the currently displayed biomolecule? Something like
> getProperty("modelInfo","currentSymopCount")?
>
> Some natural extensions to improve the useability of the biomolecule
> feature I would suggest (and would absolutely love to use) are the
> following:
>
> 1.) hover reports could specify %S (or some value not yet used) to
> show the symmetry operation number.
> 2.) setPicking symop -- when the user clicks on an atom, all other
> atoms in that symop are selected
>
> What do you think?
>
> Thanks again for adding such a useful feature.
>
> Best regards,
> Eran
>
>------------------------------------------------------------------------
>
>-------------------------------------------------------------------------
>Check out the new SourceForge.net Marketplace.
>It's the best place to buy or sell services for
>just about anything Open Source.
>http://sourceforge.net/services/buy/index.php
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Jmol-users mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>
--
Robert M. Hanson
Professor of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr
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
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users