[Chimera-users] translation + rotation of a whole scene

Elaine Meng meng at cgl.ucsf.edu
Wed Jun 11 07:30:10 PDT 2008

Hi Nils,
Perhaps it is the "matrixcopy" command that you need ... if  
"matrixset" was used to position your first model, say #0, then you  
could apply the same transformation to the others with commands like:

matrixcopy #0 #1
matrixcopy 0 2

(the pound signs # are optional)
This command does not require a matrix to be in a file.  It simply  
applies the transformation of one model to another.  Again you can  
combine all the commands with semicolons to avoid seeing the  
intermediate stages.  I hope this helps,
Elaine C. Meng, Ph.D.                          meng at cgl.ucsf.edu
UCSF Computer Graphics Lab and Babbitt Lab
Department of Pharmaceutical Chemistry
University of California, San Francisco

On Jun 11, 2008, at 1:55 AM, Nils Becker wrote:

> Hi Elaine,
> thanks for your answer. Sorry that I did not make my question  
> clearer. I know that move, turn , roll etc. do move models  
> together. However, this is not what I need.
> I need to specify a precise orientation and position of one of the  
> molecule models, say #0, so that the view direction is exactly  
> along a symmetry axis of that model. This orientation  and position  
> was generated externally and I have it available as a rotation  
> matrix and translation vector, in the same format as that used by  
> matrixset/matrixget.
> I could write the same matrix into a matrixset file N times for N  
> models in the session. This however does not rotate the molecules  
> together, but sets each one individually to the orientation and  
> position  needed only for model 1.
> is it possible to do that?
> Thanks! Nils

More information about the Chimera-users mailing list