<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Oct 30, 2008, at 3:34 PM, Matthew Dougherty wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>I was generating a morph of atoms and wanted to rotate the camera 242 <br>degrees on the x axis.<br><br>I am thinking there may be several ways to do this, such as per-frame <br>script in the morph tool or through the movie recorder script.<br><br>Is one way better than the other?<br><br>What would the scripts look like?</div></blockquote><br></div><div>Hi Matt,</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>You can't actually use a movie-recorder script for this because (and we were discussing this just this afternoon!) there is no command that will get a trajectory/morph to play. The two ways I can think of to get what you want is to use the per-frame script capabilities of the MD Movie tool that you mentioned, or to use the newish "perframe" command to get things to happen as each frame is drawn. In your scenario I can't of any compelling reason to use the latter, so I'll just describe the former.<br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>I think you just want to use the "turn" command, with the angle being 242 divided by the number of frames in your morph trajectory. Let's say you have 121 frames, your turn command would be "turn x 2.0" and you would type that into the per-frame scripting dialog and click "OK". That would apply it to the current frame, so you might want to type "turn x -2.0" in the command line to get back to your starting position (or you might not). Anyway, I think using the scripting dialog is pretty well illustrated in this PDF: <a href="http://www.cgl.ucsf.edu/chimera/docs/ProgrammersGuide/md-mav.pdf">http://www.cgl.ucsf.edu/chimera/docs/ProgrammersGuide/md-mav.pdf</a></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>Let me know if you have trouble.<br></div><div><br></div><div>--Eric</div><div><br></div><div><div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="5" style="font: normal normal normal 16px/normal Helvetica; "><br class="Apple-interchange-newline"> Eric Pettersen</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="5" style="font: normal normal normal 16px/normal Helvetica; "> UCSF Computer Graphics Lab</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="5" style="font: normal normal normal 16px/normal Helvetica; "> <a href="http://www.cgl.ucsf.edu">http://www.cgl.ucsf.edu</a></font></div></div></div><br><div></div></div></body></html>