<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Florian,<div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>I think the thing that might be confusing you is that an implicit “wait 1” is done at the end of line of a script if the commands in that line change the display (unless the last command in the line is some form of “wait” or unless the script is run via the “read” command instead of the “open” command). Therefore the waits in this series of commands is superfluous:</div><div class=""><br class=""></div><div class="">move 0.9432,3.3367,-3.9733 model #1<br class="">wait <br class="">move -3.1264,-2.5812,5.6072 model #1<br class="">wait <br class="">move -2.9523,2.8959,-3.9907 model #1<br class="">wait </div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>The other thing to know is that the various motion commands like “move” or “turn” have number-of-frames arguments. Therefore these commands:</div><div class=""><br class=""></div><div class="">perframe "move -14.0968,0.5720,-12.9560 model #1; turn y 1 model #0;" frames 1<br class="">~perframe</div><div class="">perframe "move -14.0968,0.5720,-12.9560 model #1; turn y 1 model #0;" frames 1<br class="">~perframe<br class="">perframe "move -14.0968,0.5720,-12.9560 model #1; turn y 1 model #0;" frames 1<br class="">~perframe<br class="">perframe "move -14.0968,0.5720,-12.9560 model #1; turn y 1 model #0;" frames 1<br class="">~perframe<br class="">perframe "move -14.0968,0.5720,-12.9560 model #1; turn y 1 model #0;" frames 1<br class="">~perframe<br class="">wait </div><div class=""><br class=""></div><div class="">can just be:</div><div class=""><br class=""></div><div class="">move -14.0968,0.5720,-12.9560 5 model #1; turn y 1 5 model #0; wait</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>Looking at your script snippet I can’t explain why movie encoding would start before the motions are finished. When I run your script with two sample models I opened, they stopped moving before the movie started encoding.</div><div class=""><br class=""></div><div class="">—Eric</div><div class=""><br class=""><div apple-content-edited="true" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>Eric Pettersen</div><div class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>UCSF Computer Graphics Lab</div></div><br class="Apple-interchange-newline">
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Dec 8, 2015, at 3:59 AM, Florian Drechsler <<a href="mailto:florian.drechsler@googlemail.com" class="">florian.drechsler@googlemail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">Dear Chimera Support Team,<br class=""><br class="">I have a question regarding movie making in Chimera: I would like to be able to record a movie, based on a chimera script, and have exact frame-wise control over what is recorded.<br class=""><br class="">Chimera seems to make a funny distinction between "internal trajectory frames" and "movie frames" which I don't get. I would like a one-to-one correspondence between these, no interpolation or anything like that.<br class=""><br class="">More precisely, I would like to be able to do the following, in strict sequential order:<br class=""><br class="">- Load some models,<br class=""> - rotate one of the models,<br class=""> - move one of the models,<br class=""> - capture a movie frame of the resulting configuration,<br class="">and again<br class=""> - rotate one of the models,<br class=""> - move one of the models,<br class=""> - capture a movie frame of the resulting configuration,<br class="">etc.<br class=""><br class="">I have tried using "perframe" commands, where each perframe operation comprises a "move" and a "turn" command, and has the option "frames 1". Still, I don't get exactly what I want: the resulting movie doesn't consist of the number of frames I'd expect - movie encoding seems to start before all commands have actually been executed. I can see a message saying that the movie has been finished, while things are still moving.<br class=""><br class="">I've provided a code snippet below.<br class=""><br class="">Moreover, rather than using "perframe", surely there must be a more elegant and natural way of enforcing sequential execution of commands, as one would expect from any normal programming language.<br class=""><br class="">Thank you very much in advance for your help,<br class="">Best regards,<br class="">Florian Drechsler<br class=""><br class="">--------------------------<br class=""><br class="">Florian Drechsler<br class="">Universität Ulm<br class="">Institut für Biophysik<br class="">Albert-Einstein-Allee 11<br class="">D-89081 Ulm<br class="">------------------------<br class=""><br class="">==============================================================<br class=""><br class=""># This is a command file to be opened from UCSF Chimera.<br class=""># It loads several molecules from PDB files, and arranges them in docked conformations.<br class=""># These conformations are the result of a Bayesian inference carried out by FastNPS.<br class=""># Upon execution of this file, Chimera will generate a movie clip showing a set of docked<br class=""># conformations, in the manner of a flip-book.<br class=""><br class=""># This file can be edited if any particular colour or lighting options etc. are desired.<br class=""><br class=""><br class=""># --- load PDBs ---<br class="">open ./2waq.pdb<br class="">open ./1D3U_movedtoCentrePol_noTFB.pdb<br class=""><br class=""><br class="">##################################################################################<br class="">##### E d i t a b l e s e c t i o n for custom viewing preferences #####<br class="">##### (colour, lighting, background, etc.) #####<br class="">##################################################################################<br class=""><br class="">set bg_color white<br class=""><br class="">color dark slate gray #0:.A-Q<br class=""><br class="">2dlabel create title text "Samples of configurations of docking scenario, 2WAQ vs. 1D3U" xpos 0.04 ypos 0.92 color black<br class=""><br class="">2dlabel create sub text "Motion does not represent dynamics" size 12 xpos 0.04 ypos 0.88 color black<br class=""><br class=""><br class="">##################################################################################<br class="">##### E n d o f e d i t a b l e s e c t i o n #####<br class="">##################################################################################<br class="">move x 14.5577 model #1<br class="">move y 10.7525 model #1<br class="">move z 13.1320 model #1<br class="">windowsize 800 600<br class="">scale 0.8<br class="">movie record supersample 3<br class="">move 0.9432,3.3367,-3.9733 model #1<br class="">wait <br class="">move -3.1264,-2.5812,5.6072 model #1<br class="">wait <br class="">move -2.9523,2.8959,-3.9907 model #1<br class="">wait <br class="">move -14.0968,0.5720,-12.9560 model #1<br class=""><br class="">perframe "move -14.0968,0.5720,-12.9560 model #1; turn y 1 model #0;" frames 1<br class="">~perframeperframe "move -14.0968,0.5720,-12.9560 model #1; turn y 1 model #0;" frames 1<br class="">~perframe<br class="">perframe "move -14.0968,0.5720,-12.9560 model #1; turn y 1 model #0;" frames 1<br class="">~perframe<br class="">perframe "move -14.0968,0.5720,-12.9560 model #1; turn y 1 model #0;" frames 1<br class="">~perframe<br class="">perframe "move -14.0968,0.5720,-12.9560 model #1; turn y 1 model #0;" frames 1<br class="">~perframe<br class="">wait <br class="">move 8.4475,0.1,0.1 model #1<br class=""><br class="">perframe "move 2.0968,0.5720,-12.9560 model #1; turn y 1 model #0;" frames 1<br class="">~perframe<br class="">perframe "move 2.0968,0.5720,-12.9560 model #1; turn y 1 model #0;" frames 1<br class="">~perframe<br class="">perframe "move 2.0968,0.5720,-12.9560 model #1; turn y 1 model #0;" frames 1<br class="">~perframe<br class="">perframe "move 2.0968,0.5720,-12.9560 model #1; turn y 1 model #0;" frames 1<br class="">~perframe<br class="">perframe "move 2.0968,0.5720,-12.9560 model #1; turn y 1 model #0;" frames 1<br class="">~perframe<br class="">perframe "move 2.0968,0.5720,-12.9560 model #1; turn y 1 model #0;" frames 1<br class="">~perframe<br class="">perframe "move 2.0968,0.5720,-12.9560 model #1; turn y 1 model #0;" frames 1<br class="">~perframe<br class="">perframe "move 2.0968,0.5720,-12.9560 model #1; turn y 1 model #0;" frames 1<br class="">~perframe<br class="">perframe "move 2.0968,0.5720,-12.9560 model #1; turn y 1 model #0;" frames 1<br class="">~perframe<br class=""><br class=""><br class="">wait <br class="">move 8.4475,4.5142,16.4771 model #1<br class="">turn z 2<br class="">wait <br class="">move -12.9187,-0.7126,-7.8443 model #1<br class="">turn z 2<br class="">wait <br class="">move 9.5982,-3.2342,8.4843 model #1<br class="">turn z 2<br class="">wait <br class="">move 3.2604,3.3466,-4.2558 model #1<br class="">turn z 2<br class="">wait <br class="">move 0.5383,-1.8787,5.0346 model #1<br class="">turn z 2<br class="">wait <br class="">move -0.6887,1.1472,-2.6070 model #1<br class="">turn z 2<br class="">wait <br class="">move -0.0759,-1.7268,1.1365 model #1<br class="">turn z 2<br class="">wait <br class="">move -3.1444,0.7922,-1.0015 model #1<br class="">turn z 2<br class="">wait <br class="">move 5.2841,0.0361,0.6118 model #1<br class="">turn z 2<br class="">wait <br class="">movie encode docking.mp4 bitrate 10000 framerate 60<br class=""><br class=""><br class=""><br class=""><br class=""><br class="">_______________________________________________<br class="">Chimera-users mailing list<br class=""><a href="mailto:Chimera-users@cgl.ucsf.edu" class="">Chimera-users@cgl.ucsf.edu</a><br class="">http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users<br class=""><br class=""></div></blockquote></div><br class=""></div></body></html>