1
edit
mNo edit summary |
|||
Line 264: | Line 264: | ||
ls.reverse() | ls.reverse() | ||
for map_mol in ls: | for map_mol in ls: | ||
if | if not map_is_difference_map(map_mol): | ||
set_map_colour(map_mol, 0.1, 0.5, 0.68) | set_map_colour(map_mol, 0.1, 0.5, 0.68) | ||
graphics_draw() | graphics_draw() | ||
Line 270: | Line 270: | ||
add_key_binding("Blueify the Latest 2FoFc Map", "b", | add_key_binding("Blueify the Latest 2FoFc Map", "b", | ||
blue_map_func1) | |||
# bluefy all 2FoFc maps | # bluefy all 2FoFc maps | ||
def blue_map_func2(): | def blue_map_func2(): | ||
for map_mol in map_molecule_list(): | for map_mol in map_molecule_list(): | ||
if | if not map_is_difference_map(map_mol): | ||
set_map_colour(map_mol, 0.1, 0.5, 0.68) | set_map_colour(map_mol, 0.1, 0.5, 0.68) | ||
graphics_draw() | graphics_draw() | ||
add_key_binding("Blueify all 2FoFc Maps", "B", | add_key_binding("Blueify all 2FoFc Maps", "B", | ||
blue_map_func2) | |||
To (re-)colour coordinate molecules yellow: | To (re-)colour coordinate molecules yellow: | ||
Line 288: | Line 288: | ||
def yellow_coords_func1(): | def yellow_coords_func1(): | ||
ls = model_molecule_list() | ls = model_molecule_list() | ||
if | if len(ls) > 0: | ||
set_molecule_bonds_colour_map_rotation(ls[-1], 20) | set_molecule_bonds_colour_map_rotation(ls[-1], 20) | ||
graphics_draw() | graphics_draw() | ||
add_key_binding("Yellowify last coordinates", "y", | add_key_binding("Yellowify last coordinates", "y", | ||
yellow_coords_func1) | |||
# yellowify all coordinate molecules | # yellowify all coordinate molecules | ||
add_key_binding("Yellowify all coordinates", "Y", | add_key_binding("Yellowify all coordinates", "Y", | ||
lambda: ( | lambda: ([set_molecule_bonds_colour_map_rotation(imol, 20) | ||
model_molecule_list() | for imol in model_molecule_list()], | ||
graphics_draw())) | graphics_draw())) | ||
edit