<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Excellent! Thank you. <br>
<div><br>
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px"><font size="3"><font face="Times New Roman">Criss Hartzell<br>
<font size="3">Professor<br>
<font size="3"><font size="3">Department of Cell B<font size="3">iology<br>
<font size="3">Emory University School of Medicine<br>
<font size="3">Atlanta, GA 30322<br>
<font size="3">404-242-5719 (cell)<br>
<br>
<font size="3"><u>For </u><font size="3"><u>Fedex, UPS, other cour</u><font size="3"><u>ier:</u><br>
<font size="3">Criss Hartzell<br>
615 Michael St.<br>
535 Whitehead Building</font><br>
<font size="3">Emory University<br>
<font size="3">Atlanta, GA 30322</font><br>
</font></font></font></font></font></font></font></font></font></font></font></font></font></div>
</div>
</div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF955227" style="direction: ltr;"><font face="Tahoma" size="2" color="#000000"><b>From:</b> Elaine Meng [meng@cgl.ucsf.edu]<br>
<b>Sent:</b> Friday, April 03, 2015 5:44 PM<br>
<b>To:</b> Hartzell Jr., Criss<br>
<b>Cc:</b> chimera-users@cgl.ucsf.edu<br>
<b>Subject:</b> Re: [Chimera-users] drawing ribbon<br>
</font><br>
</div>
<div></div>
<div>
<div class="BodyFragment"><font size="2"><span style="font-size:10pt">
<div class="PlainText">Hi Criss,<br>
It’s just “remembering” that the ribbon was previously set to transparent… i.e. if you just hid ribbon before rerunning the script, it wasn’t destroyed in between, just undisplayed. You can just set it back to 0% transparent at the top of the command file.
Quitting and starting a fresh Chimera should also do it, but that’s more trouble.<br>
<br>
I was able to get the desired appearance (if I understood you correctly) on my test protein 4enl with 436 amino acids. First I entered these commands manually<br>
<br>
open 4enl<br>
rainbow<br>
<br>
… and then I opened a command file test.com with the contents:<br>
<br>
~ribbon; transparency 0,r<br>
perframe "ribbon #0:$1" range 1,200<br>
wait 200<br>
transparency 70,r #0:1-200<br>
perframe "ribbon #0:$1" range 201,436<br>
<br>
… the first line being merely cleanup/reset if you are running that command file repeatedly. You don’t need semicolons unless you are putting more than one command on the same line.<br>
<br>
The slowdown was because you did not include a “wait” during drawing of the second half of the ribbon before stopping recording the movie, so the fast second half of ribbon display was not recording any more. The slowdown is saving the supersampled images.
This won’t affect the movie playback, it’s just that it takes a while to save each image frame when you are recording. When I add in the recording as well as the needed waiting, the whole thing is slow (as it has to be, to get the whole thing into your saved
movie). :-)<br>
<br>
So my test command file with the recording was:<br>
<br>
movie record supersample 4<br>
perframe "ribbon #0:$1" range 1,200<br>
wait 200<br>
transparency 70,r #0:1-200<br>
perframe "ribbon #0:$1" range 201,436<br>
wait 236<br>
movie stop<br>
movie encode ~/Desktop/test.mp4 ~/Desktop/test.mov<br>
<br>
… and example output movie test.mp4 is attached below. I hope this helps,<br>
Elaine<br>
-----<br>
Elaine C. Meng, Ph.D. <br>
UCSF Computer Graphics Lab (Chimera team) and Babbitt Lab<br>
Department of Pharmaceutical Chemistry<br>
University of California, San Francisco<br>
<br>
On Apr 3, 2015, at 1:38 PM, Hartzell Jr., Criss <criss.hartzell@emory.edu> wrote:<br>
<br>
> I have a protein with 10 transmembrane domains and would like to make a movie in which the ribbon is drawn in time from the N- to the C- terminus. I wrote a script that does that. But, the 10 transmembrane domains become hard see because they overlap one
another. To solve this problem, I wanted to make the first 600 amino acids become 70% transparent after they had been drawn. Then the drawing would continue with the second half of the protein with no transparency. The problem is that the script that I have
written to do this draws the first 600 amino acids 70% transparent immediately as they are drawn. Then the second half of the protein is drawn with 0 transparency. I set the wait time to 600 because I want to execute the transparecny command after the first
600 amino acids were drawn. But, instead, the drawing of the first 600 amino acids is tremendously slowed down by this command as if a wait of some duration occurs after each amino acid rather than after all 600 amino acids. I would appreciate your help. Thanks.<br>
> <br>
> movie record supersample 4;<br>
> <br>
> perframe "ribbon #2:$1" range 1,600;<br>
> <br>
> wait 600;<br>
> <br>
> transparency 70,r #2:1-600;<br>
> <br>
> perframe "ribbon #2:$1" range 601,959;<br>
> <br>
> movie stop;<br>
> <br>
> movie encode “d:\Dropbox\Chimera_files\movie1.mp4”;<br>
> <br>
<br>
</div>
</span></font></div>
<div class="BodyFragment"><font size="2"><span style="font-size:10pt">
<div class="PlainText"><br>
<br>
</div>
</span></font></div>
</div>
</div>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1"><br>
This e-mail message (including any attachments) is for the sole use of<br>
the intended recipient(s) and may contain confidential and privileged<br>
information. If the reader of this message is not the intended<br>
recipient, you are hereby notified that any dissemination, distribution<br>
or copying of this message (including any attachments) is strictly<br>
prohibited.<br>
<br>
If you have received this message in error, please contact<br>
the sender by reply e-mail message and destroy all copies of the<br>
original message (including attachments).<br>
</font>
</body>
</html>