Hi everyone !
I wanted to see roughly if one protein could dock on another one, and could not find any mouse setting allowing to do that. Here is a script that does just that.
USAGE : movit <selection>
The selection can now be translated/rotated
with the following keyboard shortcuts:
q,a : x translation
w,s : y translation
e,d : z translation
r,f : x rotation
t,g : y rotation
y,h : z rotation
Use : run movit.py during startup. Then, 'movit selection'.
It is not very practical, does anybody know how to do that with the mouse instead of just one step at a time like here ?
<source lang="python">
from pymol import cmd
def movit(selection="all"):
"""USAGE : movit <selection>
The selection can now be translated/rotated
with the following keyboard shortcuts:
q,a : x translation
w,s : y translation
e,d : z translation
r,f : x rotation
t,g : y rotation
y,h : z rotation
"""
line="translate ..→