<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Hi Jean-Paul,<div><span class="Apple-tab-span" style="white-space:pre"> </span>I suppose you're familiar with the page that discusses commands relevant to animation in Chimera:</div><div><br></div><div><a href="http://www.cgl.ucsf.edu/chimera/docs/UsersGuide/movies.html">http://www.cgl.ucsf.edu/chimera/docs/UsersGuide/movies.html</a></div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>Maybe there are other approaches, but one way to possibly avoid an incredibly detailed script is to use the savepos command to save views you want to visit and then use the reset command to interpolate between these views. If you find you get unwanted clipping during the interpolation, you may have to edit the positions and move the clip planes further apart (i.e. reset position-name; use the Side View or thickness/clip command to move the clip planes apart; savepos position-name).</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>Let's say you have an 100-frame trajectory and want to make a 360 around the molecule as the trajectory plays. 'savepos pos1' as whatever you want your starting view to be. Then 'turn y 180' and 'savepos pos2'. The use MD Movie's per-frame script dialog (set to Python scripting) and enter this:</div><div><br></div><div>from chimera import runCommand</div><div>frame = mdInfo['frame']</div><div>if frame == 1:</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>runCommand('reset pos2 50')</div><div>elif frame == 51:</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>runCommand('reset pos1 50')</div><div><br></div><div>and click Apply or OK. You will get some motion of the trajectory right away (assuming you were sitting on frame 1). Now type 'reset pos1' and record your trajectory. _Playing_ your trajectory won't work right until it's looped once since it's already executed the frame 1 reset command, though if you back up to the _last_ frame, do "reset pos1" and then play it will work immediately.</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>You may or may not want to also smooth your trajectory, as described here:</div><div><br></div><div><a href="http://www.cgl.ucsf.edu/pipermail/chimera-users/2008-April/002496.html">http://www.cgl.ucsf.edu/pipermail/chimera-users/2008-April/002496.html</a></div><div><br></div><div>--Eric</div><div><br><div> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="5" style="font: 16.0px Helvetica"><span class="Apple-converted-space"> <span class="Apple-converted-space"> </span></span>Eric Pettersen</font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="5" style="font: 16.0px Helvetica"><span class="Apple-converted-space"> <span class="Apple-converted-space"> </span></span>UCSF Computer Graphics Lab</font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="5" style="font: 16.0px Helvetica"><span class="Apple-converted-space"> </span><a href="http://www.cgl.ucsf.edu">http://www.cgl.ucsf.edu</a></font></p><br class="Apple-interchange-newline"></span> </div><br><div><div>On May 5, 2008, at 5:20 PM, Jean-Paul Armache wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">hi all,</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">i have a small question. would any of you know a way to set up a specific trajectory for a camera to move around the molecule? i know you can rotate the whole molecule, but the question is more related to similarity to 3ds max or maya - if you could set up a specific way the camera moves around the molecule (rotation, movement at specific point, zoom, stop, restart, further movement etc) ?</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">maybe the question is trivial, however i haven't found a way to do it (an easy way - you can do quite a huge script with small movements - one step at a time). my question is more about path drawing and setting stop points.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">regards,</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">jean-paul</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Chimera-users mailing list</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a href="mailto:Chimera-users@cgl.ucsf.edu">Chimera-users@cgl.ucsf.edu</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a href="http://www.cgl.ucsf.edu/mailman/listinfo/chimera-users">http://www.cgl.ucsf.edu/mailman/listinfo/chimera-users</a></div> </blockquote></div><br></div></body></html>