[PyMOL] Loading pdbs with a non-standard load function?

2013-10-16 Thread Christoffer Norn
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

Re: [PyMOL] Loading pdbs with a non-standard load function?

2013-10-16 Thread Thomas Holder
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

Re: [PyMOL] make movies containing morph, zoom-in, and rotation

2013-10-16 Thread Thomas Holder
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