Blueify map keys.py

Revision as of 16:27, 15 April 2010 by Bernhardcl (talk | contribs) (New page: # bluefy last map def blue_map_func1(): ls = map_molecule_list() ls.reverse() for map_mol in ls: if not map_is_difference_map(map_mol): set_map_colour(map...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
# bluefy last map
def blue_map_func1():
   ls = map_molecule_list()
   ls.reverse()
   for map_mol in ls:
       if not map_is_difference_map(map_mol):
           set_map_colour(map_mol, 0.1, 0.5, 0.68)
           graphics_draw()
           break
   
add_key_binding("Blueify the Latest 2FoFc Map", "b",
                blue_map_func1)
# bluefy all 2FoFc maps
def blue_map_func2():
   for map_mol in map_molecule_list():
       if not map_is_difference_map(map_mol):
           set_map_colour(map_mol, 0.1, 0.5, 0.68)
           graphics_draw()
   
add_key_binding("Blueify all 2FoFc Maps", "B",
                blue_map_func2)