
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

Hi Jean-Paul, I suppose you're familiar with the page that discusses commands relevant to animation in Chimera: http://www.cgl.ucsf.edu/chimera/docs/UsersGuide/movies.html 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). 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 here: http://www.cgl.ucsf.edu/pipermail/chimera-users/2008-April/002496.html --Eric Eric Pettersen UCSF Computer Graphics Lab http://www.cgl.ucsf.edu 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@cgl.ucsf.edu http://www.cgl.ucsf.edu/mailman/listinfo/chimera-users

Hi Jean-Paul, I wanted to explain that many of the movie-related commands listed in
have a "number of frames" argument. For example, the command roll y 1 360 performs a 1-degree rotation around the Y axis in each of 360 frames - you don't have to repeat a 1-degree rotation command 360 times! There are similar commands for scaling, translation, and interpolating between previously saved positions, as Eric mentioned. The page also links to some example command files. Best, Elaine ----- Elaine C. Meng, Ph.D. meng@cgl.ucsf.edu UCSF Computer Graphics Lab and Babbitt Lab Department of Pharmaceutical Chemistry University of California, San Francisco http://www.cgl.ucsf.edu/home/meng/index.html On May 5, 2008, at 7:04 PM, Eric Pettersen wrote:
Hi Jean-Paul, I suppose you're familiar with the page that discusses commands relevant to animation in Chimera:
http://www.cgl.ucsf.edu/chimera/docs/UsersGuide/movies.html
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).
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
participants (3)
-
Elaine Meng
-
Eric Pettersen
-
Jean-Paul Armache