On 05/30/2012 09:56 PM, Robert Hanson wrote:
> Problem: I want a button that toggles cartoons on / off, switching with
> "ball and stick"
>
> Solution:
>
> select *; if ({*}.cartoons) { wireframe -0.1;spacefill 23% } else {
> cartoons only }
>
> Explanation:
>
> {...}.cartoons gives the average cartoon "size" for a set of atoms -- from
> 0 to some magnitude like 1.0,
> so if any cartoons are "on" then that number will be nonzero, and
> if({*}.cartoons) will evaluate TRUE.
>
So a partial cartoon setting is sufficient here.

Q: Is it also possible to distinguish partial settings from complete 
settings (other than looping through all residues and test individually)?

Regards,
Rolf

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to