Re: [PyMOL] Add fragment

2015-05-20 Thread Benjamin Bobay
Jared - Many thanks for the quick reply. I think you and I found the same thing at the same time. I noticed in the keyboard.py file that there was a "get_ctsh" section. Which I assumed (and it is) equivalent to "Ctrl-Shift". Also under the "get_ctsh" section there was no definition for "Ctrl-Shi

Re: [PyMOL] Add fragment

2015-05-20 Thread Sampson, Jared
Hi Ben - Try this: editor.attach_fragment("pk1", "methane", 1, 0) Here's how I tracked this down, not having known about this function before your email. cmd._alt() and likewise cmd._ctrl() are functions (you can see for yourself in the source code in pymol/modules/pymol/cmd.py), and they are

[PyMOL] Add fragment

2015-05-20 Thread Benjamin Bobay
H ​i All, I was wondering if someone could point me to the correct notation for something. When making a peptide from the command line one could type: for aa in "GTHYRD":cmd._alt(string.lower(aa)) Let's say that I want to add a methane. The key code is CTRL+SHIFT+M I was wondering how to alter