“cmd.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.
cmd.mask( string selection="(all)" )
def mask(selection="(all)",quiet=1):