Re: [Jmol-users] Display/hide and multiple files

2015-12-09 Thread Rolf Huehne
On 12/09/2015 06:40 AM, Robert Hanson wrote: > I could be convinced to add that as a bug fix -- that "display/hide " > also works on only the current-model set of atoms. > You mean if 'selectAllModels = false'? I would vote for that. Regards, Rolf -- Rolf Huehne Postdoc Leibniz Institute o

Re: [Jmol-users] Display/hide and multiple files

2015-12-08 Thread Robert Hanson
On Tue, Dec 8, 2015 at 10:38 AM, Rolf Huehne wrote: > > For selection expressions it seems to take care of most cases. (I > couldn't test it yet because the bug fix version isn't available yet.) > I know, I'm getting behind. Got slowed down by other issues. > If there would later also be multi

Re: [Jmol-users] Display/hide and multiple files

2015-12-08 Thread Robert Hanson
On Tue, Dec 8, 2015 at 10:34 AM, Rolf Huehne wrote: > > > > var fileNumberInfo = atomBitset.file.all.count(); > >> var fileNumberList = []; > >> > >> if (fileNumberInfo.type == "array") { > >> for (var i from [1, fileNumberInfo.size]) { > >> var fileNumber = fileNumberIn

Re: [Jmol-users] Display/hide and multiple files

2015-12-08 Thread Rolf Huehne
On 12/08/2015 03:28 AM, Robert Hanson wrote: > The problem is that these commands actually go in and change settings, not > just the current selection. I suppose the following would do it: > > function displayModel(atoms, mode) { >var a = {selected} >select @atoms >switch (mode) { >

Re: [Jmol-users] Display/hide and multiple files

2015-12-08 Thread Rolf Huehne
On 12/08/2015 04:59 PM, Robert Hanson wrote: > On Tue, Dec 8, 2015 at 9:02 AM, Rolf Huehne wrote: > >> On 12/08/2015 02:11 PM, Angel Herráez wrote: >>> Rolf, >>> maybe I'm being naïve but, Couldn't you use _modelNumber to limit the >>> action of the display command? >>> >> The problem here is not

Re: [Jmol-users] Display/hide and multiple files

2015-12-08 Thread Robert Hanson
On Tue, Dec 8, 2015 at 9:02 AM, Rolf Huehne wrote: > On 12/08/2015 02:11 PM, Angel Herráez wrote: > > Rolf, > > maybe I'm being naïve but, Couldn't you use _modelNumber to limit the > > action of the display command? > > > The problem here is not that there doesn't exist ways to build atom > expr

Re: [Jmol-users] Display/hide and multiple files

2015-12-08 Thread Rolf Huehne
On 12/08/2015 02:11 PM, Angel Herráez wrote: > Rolf, > maybe I'm being naïve but, Couldn't you use _modelNumber to limit the > action of the display command? > The problem here is not that there doesn't exist ways to build atom expressions that would prevent changing the display state of atoms in

Re: [Jmol-users] Display/hide and multiple files

2015-12-08 Thread Robert Hanson
if selectAllModels is set false, any simple DISPLAY command (without ADD or REMOVE) will hide all models that are not displayed -- no observable effect at that moment, but when you switch to them, they will be gone. On Tue, Dec 8, 2015 at 7:11 AM, Angel Herráez wrote: > Rolf, > maybe I'm being n

Re: [Jmol-users] Display/hide and multiple files

2015-12-08 Thread Angel Herráez
Rolf, maybe I'm being naïve but, Couldn't you use _modelNumber to limit the action of the display command? -- Go from Idea to Many App Stores Faster with Intel(R) XDK Give your users amazing mobile app experiences with

Re: [Jmol-users] Display/hide and multiple files

2015-12-07 Thread Robert Hanson
On Mon, Dec 7, 2015 at 3:27 PM, Rolf Huehne wrote: > Hi all, > > I started working with loading multiple files simultaneously in Jmol. > The reason is mainly to be able to switch very fast between different > structures and not to display them simultaneously. > > For selections the setting 'set s

[Jmol-users] Display/hide and multiple files

2015-12-07 Thread Rolf Huehne
Hi all, I started working with loading multiple files simultaneously in Jmol. The reason is mainly to be able to switch very fast between different structures and not to display them simultaneously. For selections the setting 'set selectAllModels FALSE' will be able to help to prevent unwanted