Changes

From CCP4 wiki
Jump to navigationJump to search
616 bytes removed ,  15:37, 15 April 2010
Line 263: Line 263:  
To (re-)colour coordinate molecules yellow:
 
To (re-)colour coordinate molecules yellow:
   −
# yellowify last coordinate molecule
+
[[yellowify_molecule_keys.py]]
# Note: this may overwrite the 'usual' short-cut of 'y' to add a terminal residue
  −
def yellow_coords_func1():
  −
    ls = model_molecule_list()
  −
    if len(ls) > 0:
  −
        set_molecule_bonds_colour_map_rotation(ls[-1], 20)
  −
        graphics_draw()
  −
  −
add_key_binding("Yellowify last coordinates", "y",
  −
                yellow_coords_func1)
  −
 
  −
# yellowify all coordinate molecules
  −
add_key_binding("Yellowify all coordinates", "Y",
  −
                lambda: ([set_molecule_bonds_colour_map_rotation(imol, 20)
  −
                            for imol in model_molecule_list()],
  −
                        graphics_draw()))
      
==Python to Scheme and return==
 
==Python to Scheme and return==
28

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu