Re: [PyMOL] Map custom function to mouse

2012-06-09 Thread Tsjerk Wassenaar
... so a wizard seems the way to go. Thnx, T. On Jun 9, 2012 10:56 AM, "Tsjerk Wassenaar" wrote: Hi Thomas, The problem is a bit more complicated than that. I just want to be able to turn on/off some representation by just clicking the atom. I don't want to select, press key, deselect. Especi

Re: [PyMOL] Map custom function to mouse

2012-06-09 Thread Tsjerk Wassenaar
Hi Thomas, The problem is a bit more complicated than that. I just want to be able to turn on/off some representation by just clicking the atom. I don't want to select, press key, deselect. Especially for carving surfaces or meshes: click atom to turn off and click again to turn on if the result i

Re: [PyMOL] Map custom function to mouse

2012-06-09 Thread Thomas Holder
Hi Tsjerk, you could map keys, so hiding surface of a atom/residue/... breaks down to a click + key press operation. cmd.set_key('F1', cmd.show, ('surface', 'sele')) cmd.set_key('F2', cmd.hide, ('surface', 'sele')) If you really want to map the mouse click operation you need to write a wizard,

[PyMOL] Map custom function to mouse

2012-06-08 Thread Tsjerk Wassenaar
Beautiful people, I was trying to make an image with a surface, with part of the surface opened to show the inside. I tried to clip the surface by hiding everything within a distance from a pseudoatom, but I ended up editing by hand selecting atoms with the mouse, left click, hide, surface. I was