On Oct 30, 2008, at 3:34 PM, Matthew Dougherty wrote:
I was generating a morph of atoms and wanted to rotate the camera 242 degrees on the x axis.
I am thinking there may be several ways to do this, such as per-frame script in the morph tool or through the movie recorder script.
Is one way better than the other?
What would the scripts look like?
Hi Matt, 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. 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: http://www.cgl.ucsf.edu/chimera/docs/ProgrammersGuide/md-mav.pdf Let me know if you have trouble. --Eric Eric Pettersen UCSF Computer Graphics Lab http://www.cgl.ucsf.edu