<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Hi Elaine, <br>
</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"> thanks for the fast reply. After I sent off the question I wrote a script to generate a bunch of simple turn y 2 3 statements in a row with interspersed modeldisp #1 and ~modeldisp #1 statement. That worked. Only I
found out that I did not like the abruptness. So I did the reasonable thing as to change the transparency ! perframe "transparency $1,a" range 100,50 frames 10 ... or something like this. That gave a smooth transition that looks good.
<br>
</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Thanks again. <br>
</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Lothar <br>
</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">P.S. I apologize for any inconvenience, but recently my mail server was moved and I still have to update my subscription.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Elaine Meng <meng@cgl.ucsf.edu><br>
<b>Sent:</b> Wednesday, January 24, 2018 3:42:36 PM<br>
<b>To:</b> Esser, Lothar (NIH/NCI) [E]<br>
<b>Cc:</b> chimeraBB<br>
<b>Subject:</b> Re: [Chimera-users] Turning models on/off on a perframe basis</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Hi Lothar,<br>
The perframe command does have an “interval” option to do something only at every Nth frame (N >1), but then how to interleave modeldisplay and ~modeldisplay?<br>
<<a href="http://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/midas/perframe.html">http://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/midas/perframe.html</a>><br>
<br>
Here’s a possibly crazy idea, and I really don’t know if it would work: make an alias that hides the model, waits N frames (e.g. 6 frames), and then shows it again. Then use perframe to execute this alias every 2N frames (e.g. 12). I guess it’s worth a try…<br>
I hope this helps,<br>
Elaine <br>
-----<br>
Elaine C. Meng, Ph.D. <br>
UCSF Chimera(X) team<br>
Department of Pharmaceutical Chemistry<br>
University of California, San Francisco<br>
<br>
> On Jan 24, 2018, at 8:58 AM, Esser, Lothar (NIH/NCI) [E] <esserlo@mail.nih.gov> wrote:<br>
> <br>
> Hi, <br>
> in a short animation I would like to turn on/off a second model that is overlapping with the main model. The idea is to show differences by showing/hiding side chains of the second model.
<br>
> I know I can turn off models with ~modeldisp #1 but I don't know how to do that properly in a perframe statement<br>
> <br>
> turn y 2 180<br>
> perframe "modeldisp #1 " range 0,1 frames 180 # pseudo code <br>
> wait<br>
> <br>
> clearly range does not quite work and $1 is presumably not setup to be ~ or nothing.<br>
> I want to turn #1 on/off say every 6 degrees. How can this be done ? <br>
> <br>
> Thanks, <br>
> Lothar <br>
<br>
</div>
</span></font></div>
</body>
</html>