Hi... I was looking for something like this... but I want to switch between maps...say I have my blue map, my red/green map and my anomalous map....can I switch between them...scroll to desire rmsd and change to the other map... (I scroll a lot these three maps while doing model building...)
2014-11-13 20:53 GMT-06:00 Oliver Clarke <[email protected]>: > Hi all, > > In case it is of use to any one else, I worked out a key binding which I > find quite handy and hadn't come across previously, so figured I'd post it > here. > > It undisplays all the maps you have displayed if you press it once, and > then redisplays the same set of maps you had open previously if you press > it a second time. (There is probably a better way of doing this already > built in to Coot, but I hadn't been able to find it, and this seems to > work.) > > I find this useful for quickly toggling the maps off to take a close look > at the model, then switching them back on, without having to use display > manager to unselect and reselect the specific subset of maps that were open > originally. > > Oliver. > > Script: > > map_disp_flag={0:0} > map_disp_flag_cycle=0 > def toggle_map_display(): > global map_disp_flag > global map_disp_flag_cycle > if map_disp_flag_cycle==0: > for map_id in map_molecule_list(): > disp_value=map_is_displayed(map_id) > map_disp_flag[map_id]=disp_value > if disp_value==1: > set_map_displayed(map_id,0) > map_disp_flag_cycle=1 > elif map_disp_flag_cycle==1: > for map_id in map_molecule_list(): > if map_id not in map_disp_flag: > disp_value=map_is_displayed(map_id) > map_disp_flag[map_id]=disp_value > if map_disp_flag[map_id]==1: > set_map_displayed(map_id,1) > map_disp_flag_cycle=0 > add_key_binding("Toggle map display","`", > lambda: toggle_map_display()) >
