code: def show_wbridges(self):
          
          for bridge in self.plcomplex.waterbridges:
              if bridge.protisdon:
                  cmd.select('HBondDonor-P', 'HBondDonor-P or (id %i & %s)' % (bridge.don_id, self.protname))
                  cmd.select('HBondAccept-L', 'HBondAccept-L or (id %i & %s)' % (bridge.acc_id, self.ligname))
                  cmd.select('tmp_don', 'id %i & %s' % (bridge.don_id, self.protname))
                  cmd.select('tmp_acc', 'id %i & %s' % (bridge.acc_id, self.ligname))
              else:
                  cmd.select('HBondDonor-L', 'HBondDonor-L or (id %i & %s)' % (bridge.don_id, self.ligname))
                  cmd.select('HBondAccept-P', 'HBondAccept-P or (id %i & %s)' % (bridge.acc_id, self.protname))
                  cmd.select('tmp_don', 'id %i & %s' % (bridge.don_id, self.ligname))
                  cmd.select('tmp_acc', 'id %i & %s' % (bridge.acc_id, self.protname))
              cmd.select('Water', 'Water or (id %i & resn HOH)' % bridge.water_id)
              cmd.select('tmp_water', 'id %i & resn HOH' % bridge.water_id)
              cmd.distance('WaterBridges', 'tmp_acc', 'tmp_water')
              cmd.distance('WaterBridges', 'tmp_don', 'tmp_water')
          if self.object_exists('WaterBridges'):
              cmd.set('dash_color', 'lightblue', 'WaterBridges')
          cmd.delete('tmp_water or tmp_acc or tmp_don')
          cmd.color('lightblue', 'Water')
          cmd.show('spheres', 'Water')
docs: Visualize water bridges.