There is no easy way to do this.
Both active-residue and closest-atom return the CA of a residue if a CA
exists in the residue. Most of the time that is a reasonable thing to
do. Not here though :-(
Paul.
On 10/12/12 19:05, Sam Stampfer wrote:
> Thanks for your help! That is close, but it will only fix the alpha
> carbon of the selected residues.
>
> On Mon, Dec 10, 2012 at 1:11 PM, Debreczeni, Judit
> <[log in to unmask]
> <mailto:[log in to unmask]>> wrote:
>
> off the top of my head (i.e. not tested):
>
> (add-key-binding "fix atom" "F"
>
> (lambda () (mark-atom-as-fixed (car (active-residue)) (cdr
> (active-residue)) 1)))
>
> (add-key-binding "clear fixed atoms" "D"
>
> (lambda () (clear-fixed-atoms-all)))
>
>
> *From:*CCP4 bulletin board [mailto:[log in to unmask]
> <mailto:[log in to unmask]>] *On Behalf Of *Sam Stampfer
> *Sent:* 10 December 2012 16:22
> *To:* [log in to unmask] <mailto:[log in to unmask]>
> *Subject:* [ccp4bb] Coot keybinding for fixing an atom in place
>
> Dear CCP4 Bulletin Board,
>
> Does anyone have a keybinding I can add to my .coot file so that I
> can hit a key (for example, Shift-F) to fix in place the actively
> selected atom, without having to go through the fixed atoms dialog
> box? Also, does anyone have a keybinding for "Clear Fixed Atoms"?
>
> Thanks!
>
> -Sam
>
>
|