I use the following script to select and hide one of two models in a window:

k = {*}.atomIndex.max + 1;t = {*}.atomIndex.min;select within(branch, 
{atomIndex = k}, {atomIndex=t}); hide selected

Is there a way to run this in a loop of frames and apply it to frames based on 
frame number i:

if (i == 1){k = {*}.atomIndex.max + 1;t = {*}.atomIndex.min;select 
within(branch, {atomIndex = k}, {atomIndex=t}); hide selected}

In other words, in a given frame, can i be incorporated into the expression to 
take the place of *?

I can make it work for a specific case - e.g.:

k = {1.2}.atomIndex.max + 1;t = {1.2}.atomIndex.min;select within(branch, 
{atomIndex = k}, {atomIndex=t}); hide selected

But I don't know how to incorporate the frame index i into the expression.

Otis

--
Otis Rothenberger
[email protected]
http://chemagic.com







------------------------------------------------------------------------------
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