Crystallography‎ > ‎Molecular graphics‎ > ‎Pymol‎ > ‎

Set_view and Get_view

Use get_view to get the orientation matrix in output and you get something like this:

PyMOL>get_view
### cut below here and paste into script ###
set_view (\
    -0.986249089,   -0.106730871,    0.126199022,\
    -0.133002996,    0.059200808,   -0.989350796,\
     0.098125450,   -0.992521822,   -0.072583526,\
     0.000536099,   -0.000286696,  -99.499382019,\
  -108.387985229,   52.599941254,   19.336492538,\
  -144.385040283,  343.245666504,  -20.000000000 )
### cut above here and paste into script ###

Copy and paste the matrix in a text file and call it cmd.view.py.
Then to apply this matix to the current model, type in the command line:

@cmd.view.py