On 06/16/2014 12:18 PM, Andreas Truszkowski wrote:
> Hi,
> Am 16.06.2014 11:52, schrieb Rolf Huehne:
>> For this you can use the 'file.model' syntax in atom expressions (see
>> http://jena3d.fli-leibniz.de/doc/jmol_scripting/index.htm#atomexpressions).
>> Assuming that both models are in the first file loaded, you could use this:
>>      display (1.1 and *:A) or (1.2 and *:B)
>>
>> Or as a shortcut:
>>      display *:A/1.1 OR *:B/1.2
>>
>> And if only one file is loaded even shorter:
>>      display *:A/1 OR *:B/2
> I tried the last expression before, but it hasn't worked. That's why I
> got here...
>
> Also the expression:
> display ((1.1 and *:A) or (1.2 and *:B)) and not hydrogen; restrict
> protein;center {visible};
> does not provide the expeted result. Only the full first model is
> visible as always at startup.
>
> And its only a single file...
>
Sorry, I thought the problem was to reduce the view.
It wasn't obvious from your question that you already had trouble 
viewing the whole biological unit.

There is another command involved here, the 'frame' command (see 
http://jena3d.fli-leibniz.de/doc/jmol_scripting/index.htm#frame)

By default only the first model of a file is loaded. You need to run the 
command 'frame all' to see all models at once.

Then you can use the 'display' command to restrict the view.
But you must be careful not to loose track which setting was made by 
both commands.
In the following example you will see nothing because the setting of the 
other command prevents the display of anything:
   frame 2;
   display *:A/1;

Or in this example you will only see model 2:
   frame 2;
   display all

If you work with the display/hide commands I would recommend to set 
always 'frame all' first, unless you know what you are doing and always 
keep the current 'frame' command setting in mind.

Regards,
Rolf

-- 

Rolf Huehne
Postdoc

Leibniz Institute for Age Research - Fritz Lipmann Institute (FLI)
Beutenbergstrasse 11
07745 Jena, Germany

Phone:   +49 3641 65 6205
Fax:     +49 3641 65 6210
E-Mail:  [email protected]
Website: http://www.fli-leibniz.de

           Scientific Director: Prof. Dr. K. Lenhard Rudolph
        Head of Administration: Dr. Daniele Barthel
Chairman of Board of Trustees: Dennys Klein

VAT No: DE 153 925 464
Register of Associations: No. 230296, Amtsgericht Jena
Tax Number: 162/141/08228


------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to