def unmask(selection="(all)", quiet=1, _self=cmd): ''' DESCRIPTION "unmask" reverses the effect of "mask" on the indicated atoms. PYMOL API cmd.unmask( string selection="(all)" ) USAGE unmask (selection) SEE ALSO mask, protect, deprotect, mouse ''' r = DEFAULT_ERROR # preprocess selection selection = selector.process(selection) # try: _self.lock(_self) r = _cmd.mask(_self._COb, "(" + str(selection) + ")", 0, int(quiet)) finally: _self.unlock(r, _self) if _self._raising(r, _self): raise pymol.CmdException return r
def mask(selection="(all)", quiet=1, _self=cmd): ''' DESCRIPTION "mask" makes it impossible to select the indicated atoms using the mouse. This is useful when you are working with one molecule in front of another and wish to avoid accidentally selecting atoms in the background. USAGE mask (selection) PYMOL API cmd.mask( string selection="(all)" ) SEE ALSO unmask, protect, deprotect, mouse ''' r = DEFAULT_ERROR # preprocess selection selection = selector.process(selection) # try: _self.lock(_self) r = _cmd.mask(_self._COb, "(" + str(selection) + ")", 1, int(quiet)) finally: _self.unlock(r, _self) if _self._raising(r, _self): raise pymol.CmdException return r