Dear Luca and Serge,
> > PS: If any one as some info on the previous questions I asked (get_view > > blocks...), really don't fill shy about it. I did not have any answer > > (even off list) > here is the meaning of the rotation matrix: set_view (\ #rotation matrix, describes the orientation of #the object relative to coordinate system: -0.423272938, 0.519671082, -0.742144108,\ 0.565680504, -0.488278866, -0.664524078,\ -0.707710445, -0.701090038, -0.087292627,\ #Position of the object relative to world coordinates: 0.000000000, 0.000000000, -108.510879517,\ #Coordinates of the object rotation center: 21.806344986, 33.097042084, 26.156803131,\ #Near and far clipping planes, and the orthoscopic flag: 81.724128723, 141.037658691, 0.000000000 ) Quoting Luca Jovine <lucajov...@mac.com>: > On Wednesday, October 2, 2002, at 10:10 AM, Serge Cohen wrote: > > Actually, I would also be very interested in knowing what the matrix > output by get_view exactly means... also because it would be really nice > if one could save the *transformed* coordinates of a molecule, so it could > be imported into other programs in exactly the same orientation as in > PyMOL (even though I find myself using other programs less and less, > sometimes one still needs them...) Here is a simple script that saves the molecule with coordinates from the current orientation. # Adds the command save_transformed # Usage: save_transformed object, file def save_transformed(object,file): m = cmd.get_view(0) ttt = [m[0], m[1], m[2], 0.0, m[3], m[4], m[5], 0.0, m[6], m[7], m[8], 0.0, 0.0, 0.0, 0.0, 1.0] cmd.transform_object(object,ttt) cmd.save(file,object) cmd.extend('save_transformed',save_transformed) Cheers, Paulo