[Chimera-users] script

Elaine Meng meng at cgl.ucsf.edu
Fri Apr 25 14:16:50 PDT 2014


Hi Tanja,
In Chimera, I believe the commands move the objects, not the camera, but otherwise it can be done using the commands "perframe" (to do some things at every frame), "turn" (to rotate around Y axis) and "copy" (to save the image file).

For example, the following saves PNG files named 001.png, 002.png, ... 022.png as a structure is rotated in 2° increments about the Y axis:
perframe "turn y 2; copy png file ~/Desktop/$1.png" frames 22 zero 3

See manual for explanation of command options and more examples:
<http://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/midas/perframe.html>
<http://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/midas/turn.html>
<http://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/midas/copy.html>

I hope this helps,
Elaine
-----
Elaine C. Meng, Ph.D.                       
UCSF Computer Graphics Lab (Chimera team) and Babbitt Lab
Department of Pharmaceutical Chemistry
University of California, San Francisco

On Apr 25, 2014, at 6:14 AM, Schulz-Gasch, Tanja wrote:

> Hi there,
> I hope you could help me with a little script. I am pretty sure, that something must exists already;-)
> I need to rotate around the y-axis in 2 degree steps for a total of 44 degree and at each step export a high res graphic. Rotation of the camera/view (keeping the look-at point) would be preferable compared to rotation of the object. Anything out there like this???
> Thanks for your help, Tanja




More information about the Chimera-users mailing list