[Chimera-users] movie trajectory

Eric Pettersen pett at cgl.ucsf.edu
Mon May 5 19:04:41 PDT 2008

Hi Jean-Paul,
	I suppose you're familiar with the page that discusses commands  
relevant to animation in Chimera:


	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  

	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:

from chimera import runCommand
frame = mdInfo['frame']
if frame == 1:
	runCommand('reset pos2 50')
elif frame == 51:
	runCommand('reset pos1 50')

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.

	You may or may not want to also smooth your trajectory, as described  



                         Eric Pettersen
                         UCSF Computer Graphics Lab

On May 5, 2008, at 5:20 PM, Jean-Paul Armache wrote:

> hi all,
> 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) ?
> 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.
> regards,
> jean-paul
> _______________________________________________
> Chimera-users mailing list
> Chimera-users at cgl.ucsf.edu
> http://www.cgl.ucsf.edu/mailman/listinfo/chimera-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-users/attachments/20080505/788c2421/attachment.html>

More information about the Chimera-users mailing list