From: Rolf H. <rh...@fl...> - 2007-05-10 11:24:23
|
Ravi M wrote: > Hi All, > I have loaded two models in jmol, and did "model > All;display(*/1, */2);" I was wondering if it is possible to select > atoms in model 1 which are at certain distance from atoms in model 2. > > Another issue I am having is that if I have multiple models loaded in > JMOL and if I use "hide *.CA/1" then it is display all the models. For > eg: if I have loded two file, 1.pdb, 2.sdf > > load "fileset" " 1.pdb" "2.sdf"; model All;display(*/1, */2.1);hide > [LIG]/1; > > when I do this, then all the models get displayed. But when I remove > "hide [LIG]/1" everthing works. Could somebody tell me what I am doing > wrong ? (please note, [LIG] is a residue name in 1.pdb) > > Thank you all in advance. > Ravi As far as I know this is the intended behaviour. Shortly after introducing the 'display/hide' commands I had a discussion with Bob on the list (Subject: hide/display commands, Date: 10/13/2006) where he explained why he thinks that 'hide ' should not only hide things but also display all the rest not hidden. See text below: Bob Hanson wrote: > Rolf Huehne wrote: > > >> > Hi Bob, >> > >> >I tried the new 'hide' and 'display' commands and like the new >> >possibilities very much. >> > >> >What I still don't like is that 'hide' also displays things and >> >'display' also hides things. >> > >> > comments appreciated -- it might take a little user use to sort this out. > > >> >It is not what you would expect from these >> >commands and it will make scripting more complicated in many cases. On >> >the other hand it would make scripting easier in some cases. >> >Therefore I would propose a configuration switch that sets the behaviour >> >of these commands. The question is what the default behaviour should be. >> >I would prefer "hide only hides" and "display only displays" because it >> >would be more intuitive. >> > >> > I'm not following what these would mean. Can you be specific? I think > what you are after is simply understanding how to do it: > > display displayed or.... > hide hidden or.... > > This is exactly like > > select selected or.... > > In other words, "display" and "hide" always describe precisely what to > display or hide. Just like select. > > My argument is that it is far simpler to go with what logic we already > have. Your "switch", I think, is just to be sure you yourself add > "displayed or" .... "hidden or" .... in cases where that is what you > want to do. > > This is the way select works, and it's precisely the same for "display" > and "hide" > > > >> >But we should discuss this on the user-list. >> > >> > >> > >> > the discussion is open. > > Regards, Rolf |