Hi all,
I've written a script to load pdbs with extra information. Now I would like
this script to used instead of the standard load command when I double-click
pdb files. How would I go about doing this?
Thanks,
Chris
Hi Chris,
put something like this in your ~/.pymolrc.py script:
from pymol import cmd
def customload(*args, **kwargs):
print do stuff
cmd.load = customload
cmd.extend('load', cmd.load)
Make sure your customload function doesn't call cmd.load itself, but rather
pymol.importing.load if you
Hi Mengbin,
it's all about the mview command. It can associate states, camera positions
and object positions with movie frames.
# store state 5 with frame 100
mview store, 100, state=5
# store camera position with current frame
mview store
# store all object positions with current frame
mview