Re: [Jmol-users] setting hover text only for selected atoms

2009-04-02 Thread Angel Herraez
Thanks, Bob

 well, you can do whatever you want with the callback, right? If you 
 want to know if an atom is in a certain set, I think you could use:
 
 if ({whateverSet} and {atomno=_atomHovered})

Yes, I am already following that line -and have a working test-.
It is atomindex, not atomno, isn't it?



--
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] problem to take into account changes to a file.xyz in the Jmol applet

2009-04-02 Thread Angel Herraez
Hello Benjamin 

Your problem is probaly related to the Java cache in the browser. 
This a browser-specific problem, per user.
You can fix it by manually clearing the Java cache before each 
reload. There are instructions in the Jmol Wiki, Running Jmol, 
Troubleshooting:
http://wiki.jmol.org:81/index.php/Troubleshooting/Java_Problems#Java_c
ache

I don't think there is any other solution, or an automatic one. Maybe 
you can disable the Java cache.

The only other fix is to use a different filename each time.



--
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Biomolecule filter broken?

2009-03-25 Thread Angel Herraez
I see (11.5.50, 11.7.28) that the biopolymers entry in the pop-up 
menu is greyed out. May that be a hint?


--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] user defined covalent radius

2009-03-25 Thread Angel Herraez
Karol, I think what Bob suggested is
1. there is no implementation of custom covalent radii
2. you can use the connect command to substitute for that: have 
Jmol calculate and render bonds base on your radii
3. you must do that for each and every frame in your 
animation/dynamics

The callback is a mechanism by which Jmol send a signal when 
something happens (in this case, a frame change during animation) and 
a javascript routine can be invoked (in this case, calling the 
recalculation of bonds)

I'll try to write a prototype and let you know
(Bob is currently at a meeting and so probably not following too 
closely this list)


Are you working with the application, or the applet?


--
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] user defined covalent radius

2009-03-25 Thread Angel Herraez
It can be done with the frame callback method, but it seems we don't 
need to go that way. Based on my quick test, the connect command 
works for all frames in one go without trouble, and the redefined 
bonds are kept across the animation.
So, you may just need to disable autobonding and then apply a single 
connect command, then play the animation.
If you provide an example file and radii, I can demonstrate it.


--
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] How to pan the view?

2009-03-24 Thread Angel Herraez
 I often wondered  
 why there isn't another way to do it---a different command key or  
 command key combination.

There's also   Ctrl + right-drag
(if you have a mouse with more than one button)



--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Fwd: Jmol Assistance

2009-03-24 Thread Angel Herraez
Hello Aya

You seem to have several different issues. Let's try to sort out 
things with your problem.

Your function rotateModel should be a Javascript function. First, 
you need the proper javascript syntax (you are lacking the braces and 
you should not use end). Second, the call to Jmol.js is separate 
from any other script; the way you have it, it is just being ignored. 
Third, you cannot call the Jmol script directly but must pass it 
trough jmolScript():

head
script src=Jmol.js type=text/javascript 
/script
script type=text/javascript 
  function rotateModel()
{
  jmolScript('rotate {atomno=1} {atomno=2} 90;')
}
/script
/head


Then, you can call that javascript function, but not inside 
jmolRadioGroup or JmolButton:

body
 input type=button value=RotateButton onClick=rotateModel()


So, that's not the best way to do it. Let's try something different:

head
script src=Jmol.js type=text/javascript 
/script
/head
body
  script type=text/javascript
   jmolInitialize(.)
   jmolHtml(RadioGroup Sample: );
   jmolRadioGroup([
   [rotate {atomno=1} {atomno=2} 90, Rotate]
   ]);
 
  jmolBr();
   jmolHtml(Menu Sample: );
   jmolMenu([
   [rotate {atomno=1} {atomno=2} 90, Rotate]
   ]);
 
   jmolBr();
   jmolHtml(Button Sample: );
   jmolButton(rotate {atomno=1} {atomno=2} 90,RotateButton);
  /script

  script type=text/javascript
   jmolApplet(290,load models/practice.pdb;select all;spacefill 
25%;wireframe .15;color cpk;zoom 120,0)
  /script
 /body/html
 

Note I have added a call to jmolInitialize(). This is not completely 
complusaory, but it is highly recommended (unless you know well what 
you are doing).

 
 
 I am working on something of a webpage project, where I must utilize 
 a java applet, Jmol, in an html page. I don't know if this is a lack 
 of knowledge in html, java, or jmol (most likely all three) that is 
 hindering me from being productive, but I am having a hard time 
 finding where to place the java functions and the code that 
 references them relative to the html formatting. Any suggestions?

1. You don't need to know any Java language.
2. There are no Java functions involved. It's Javascript, no Java. 
Most is done with Javascript thaks to the Jmol.js library that 
interfaces with Jmol.


 No matter where I put my function, if I try calling it in the same 
 script  When I put the functions in the same

Your function was malformed.




--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Fwd: Jmol Assistance

2009-03-24 Thread Angel Herraez
Following my previous post, here are some other ways to do it:

If you want to keep the command in a single place, you can either use 
a javascript variable or a function as you were trying to do (even 
though I said before it could not be done):

head
script src=Jmol.js type=text/javascript 
/script
script type=text/javascript 
var rotateModel = rotate {atomno=20} {atomno=30} 90
/script
/head
body
script type=text/javascript 
  jmolInitialize(.)
   jmolHtml(RadioGroup Sample: );
   jmolRadioGroup([
   [rotateModel, Rotate]
   ]);
 
  jmolBr();
   jmolHtml(Menu Sample: );
   jmolMenu([
   [rotateModel, Rotate]
   ]);
 
   jmolBr();
   jmolHtml(Button Sample: );
   jmolButton(rotateModel,RotateButton);
/script
/body


or


head
script src=Jmol.js type=text/javascript 
/script
script type=text/javascript 
function rotateModel()
{
  return rotate {atomno=1} {atomno=2} 90
}
/script
/head
body
script type=text/javascript 
  jmolInitialize(.)
   jmolHtml(RadioGroup Sample: );
   jmolRadioGroup([
   [rotateModel(), Rotate]
   ]);
 
  jmolBr();
   jmolHtml(Menu Sample: );
   jmolMenu([
   [rotateModel(), Rotate]
   ]);
 
   jmolBr();
   jmolHtml(Button Sample: );
   jmolButton(rotateModel(),RotateButton);
/script
/body


You can also generalize it to:

function rotateModel(x)
{
  return rotate {atomno=1} {atomno=2}  + x
}

and then call it like

rotateModel(90)

rotateModel(45)

etc.



--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Use of Java in teaching?

2009-03-03 Thread Angel Herraez
 a) Java allows malicious activity that could damage the system

Letting users use the computer allows malicious activity that could 
damage the system  ;-)
And, does this mean that Flash is foolproof?


 b) Java is an outmoded way to provide educational resources as everyone
 is using Flash now

Outmoded? A software that's being updated every month or so...  I 
would'n dare to say that. 
And the key is: can Flash do what the Java applets do? I don't mean 
only Jmol.

Everyone? Everyone is using Flash now to substitute html on their 
pages. Does that mean that html is outmoded?

Open source vs. proprietary, of course


Whoever is deciding the (no) installation is rather short-sighted. 
One has to consider the functionality, not make generalizations based 
on ... what evidence?





--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] selecting list of atoms

2009-02-26 Thread Angel Herraez
Hi Dan

I'm afraid there is not much that can be done:

1. you can put commas instead of or
select atomno=3,atomno=5,atomno=18,atomno=26

2. if the file is MOL format (not sure about others like XYZ, 
certainly not in PDB), you can use a combination of element symbol + 
atom number, like
select C3,O5,C18,C26

3. there is a chance that there is a Jmol math syntax to do that in 
some way like {3,5,18,26} but I cannot help with that, if even 
possible. Bob can tell you.


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] SelectionListener

2009-02-26 Thread Angel Herraez
Alex,

it is possible to do that from the javascript side with the applet, 
using pickCallback, as well as from the JmolScript language:
http://jmol.sourceforge.net/jslibrary/#jmolSetCallback
http://chemapps.stolaf.edu/jmol/docs/#setcallback

so I bet that there is a way inside the code to have it done at an 
inner level (but cannot help you out there)



--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Multiple viewports in JMol?

2009-02-16 Thread Angel Herraez
Hello Umanga

If you mean seeing the 5 models side by side at the same time, no. 
You'll need 5 applets.

You can load the 5 files into a single applet and show them one by 
one using the load files or the load append command. Or show them 
superimposed at the same time, but they will overlap.



--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Chime to Jmol translation

2009-02-16 Thread Angel Herraez
Hello Inbal

Time ago, someone wrote a script for doing that (maye in Perl, not 
sure now) but I'm not sure if it is still available and how trustable 
it may result, particularly for recent Jmol versions; in any case, 
I'd rather do it manually. 

The tasks are:

1. substitute embed tags by applet calls
2. check that scripts are working

Things change a little depending on whether scripts are in separate 
files or in the page source, but it doesn't really make a difference 
in functional terms.

Most commands are fully portable from RasMol/Chime to Jmol, but there 
are a few that break scripts ad those must be located by eye.

I can give some help if you hit some stones in the process, just ask
 --or if you are in the situation, I will also be happy to do it in 
exchange for money or a publication ;-)
http://sourceforge.net/services/project_services.php?project_id=23629




--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Bonds not showing in Jmol 11.6

2009-02-13 Thread Angel Herraez
Hi Ewen

That's pdb format, right?

I've done a quick test and it's working for me in both 11.4.6 and 
11.6.16
Check the column positions of the atom numbers, might be that.

Not an explanation for your problem, but you could also dispose of 
CONECT records and use Jmol connect command -- it's cleaner and 
more flexible (partial bonds for example). And you can embed it in 
the pdb file if you don't want to run a separate script.
http://wiki.jmol.org/index.php/File_formats#Script_inline_within_a_mol
ecular_coordinates_file




--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Mac OS X

2009-02-13 Thread Angel Herraez
 Can you say to me where I can downloaded Jmol?

http://jmol.org
and follow the links


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Custom menus in Jmol

2009-02-13 Thread Angel Herraez
Yes, Dan, it is implemented. I put it into practice recently and 
found a bug which has been fixed.
Read it all in the Wiki, including 2 examples.
http://wiki.jmol.org:81/index.php/Custom_Menus



--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] computing volume and surface area of isosurfaces

2009-02-12 Thread Angel Herraez
Hello Yi
Not sure it this is enough to solve your problem; I don't think Jmol 
can do the calculation of surface and volumen but, yes, you can save 
the isosurface data.

From application and signed applet, you can directly save to disk, 
using
write isosurface
From unsigned applet, you can send the data to the console, then copy-
paste from there into a text file:
show isosurface
For details on the commands, see the doc page
http://chemapps.stolaf.edu/jmol/docs/#isosurface

Good luck!




--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Jmol and GROMACS?

2009-02-10 Thread Angel Herraez
Egon, this page of mine
http://biomodel.uah.es/en/water/p3.htm
was built from Gromacs data of a molecular dynamics simulation.
Since Jmol did not read the gro file, I converted the data to pdb 
format (see details at the bottom of the page).

We discussed about providing Jmol support for gro files, but I think 
it was not done -- if I remember correctly, Bob needed good sample 
files for proteins, which I don't have. See the discussion at
http://sourceforge.net/tracker/?func=detailatid=379136aid=1876675gr
oup_id=23629




--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] good idea?

2009-02-06 Thread Angel Herraez
This is an interesting feature, and rather surprising to me. One 
never ends to marvel at Jmol wonders. Great work, Bob!

And now that I'm sensitive to the topic (having mused around it for 
my home page in the last few days), this feature would contribute to 
web accesibility, if the arrow, plus, minus keys could be included 
(that may be hardly cross-platform maybe): use Jmol without the 
mouse. An interesting subproject or junior task maybe.

Here are my two euro cents (or are they 4?):

1. 
I do not think that having it active by default is a good idea, at 
least in blind mode. I'd make it either (a) inactive by default or 
(b) active by default but with set showKeyStrokes true. I'd rather 
prefer (a); (b) may be dangerous or confusing to non-aware users. 
Remember that many users are not expected to know how to use the 
command language; that's one of the purposes of having an applet, to 
provide a ready-to-use environment.

2. 
I agree that a named echo is better than bottom left  (e.g. name it 
KeyStrokes). And if put a line above the bottom, there's less 
chance to obscure an existing echo. A different default color (maybe 
different font face too, monospaced?) could be helpful.

3.
Activating both the feature and the showKeyStrokes should be 
available from the pop-up menu. If you need to open the console for 
that, then there is less usefulness in having the commands displayed 
inside the applet, since you already see them in the console.

4.
I agree that if the pop-up menu is blocked, the feature should be 
blocked too. (For those pages where we really do not want the user to 
mess around)



--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Problem with local installation

2009-02-05 Thread Angel Herraez
Hello Norman

That's quite unexpected. The Java installation should take care of 
everything. I have never seen such problem.
Some things to try, as non-privileged user:

* Can you see Jmol applets in web pages?
* Can you open another Java application (another .jar file)?
* Is this happening only when you double-click on Jmol.jar, or on a 
molecule file. If the latter, how have you set-up the file 
association?
* Try opening Jmol from the command line rather than from double-
click
* Try to reinstall / update Java

Let us know the outcome


--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Jmol in Powerpoint

2009-02-02 Thread Angel Herraez
Hi Arjan

It is possible, provided that:
- you use Windows
- you use a PC where you have installed a certain piece of software
- but you really are embedding a webpage that includes a Jmol applet; 
this has the advantage that you can also include controls like 
butttons and so on

The software is called LiveWeb. Check compatibility with PPT versions 
(I have only used it with Office2003)
It is a complement or plugin installed into PowerPoint, and requests 
permissions for being run (its an ActiveX).

I must say that I don't particularly recommend this solution, unless 
you like it better and you are using your own PC for the 
presentation. In most setups, if is easier to just use Jmol app or 
and applet in a webpage.
You'd rather jump to the Jmol window, or to the JmolApplet page, in 
the middle of your presentation, and back to this after showing the 
models. Or you put a hyperlink to the page inside the presentation.
Another advantage is that you have the Jmol page open in advance, 
prepared behind the presentation, so you don't have to wait for Java 
and the applet and model to load when you go to the next slide.

This has been discussed a few times in the list. I think it's a good 
topic for a FAQ in the Wiki. Wil post it there.


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] surface calculation and rendering time

2009-01-30 Thread Angel Herraez
Jaime, I was writing a post for the Proteopedia list explaining just 
this. Here is my advice:

I haven't looked at the source code, but this may help:
the sensible thing for pre-programmed surfaces in web pages is to 
have Jmol save them as jvxl files, then make the page load that file -
- much faster than calculating it every time.

Also, I would add a message inside Jmol itself while the model loads. 
It is discouraging to have a white empty square. See
http://wiki.jmol.org/index.php/Recycling_Corner#Providing_a_.27please_
wait.27_notice_while_the_applet_loads

You could also add a warning (using echo) while the surface is 
calculated or loaded.

A typo:
of the hemes by toogling off the spin
should be toggling, right?


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] loading multiple unit cells and CIF files

2009-01-30 Thread Angel Herraez
Steve, It sees to me that  instead of
RELOAD {444 666 1}
what you want may be the next menu entry,
RELOAD {444 666 1}; display 555;
Is it so?

And this is what these menu entries do, respectively:

save orientation; load  {444 666 1} ; restore orientation; center;

and

save orientation; load  {444 666 1} ; restore orientation; 
unitcell on; display cell=555; center visible; zoom 200;

So, for 3x3x3 cells out of 5x5x5, you may try

load myFile.cif {333 777 1} ; 
unitcell on; 
display 
cell=444,cell=445,cell=446,cell=454,cell=455,cell=456,cell=464,cell=46
5,cell=466,cell=544,cell=545,cell=546,cell=554,cell=555,cell=556,cell=
564,cell=565,cell=566,cell=644,cell=645,cell=646,cell=654,cell=655,cel
l=656,cell=664,cell=665,cell=666;
center visible; zoom 200;

Or, if the file is already loaded, change the first line for:

save orientation; load  {333 777 1} ; restore orientation; 
etc.


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Advice on display of cyclic DNA: more ...

2009-01-28 Thread Angel Herraez
Well, it is not based on residue numbering.

A possible way to deal with this ould be to parse the pdb information 
in LINK records. 
Henry's file (2HK4.pdb)  has them:
LINK P C A   1 O3*   T A   8  
LINK P C B   1 O3*   T B   8  

They are meant to supplement info in CONECT records, and to be used 
for:
1. Bonds between HET groups or between a HET group and standard 
residue,
2. Inter-residue linkages not implied by the primary structure
3. etc.

Point 2 looks to me like the current case. Point 1 would also be 
interesting (not sure now whether Jmol currently links hetgroups and 
residues in cartoons, will check)

This is the PDB spec:
··
The LINK records specify connectivity between residues that is not 
implied by the primary structure. Connectivity is expressed in terms 
of the atom names. 
[snip]

Record Format

COLUMNS DATA TYPE  FIELD   DEFINITION
-
 1 -  6 Record nameLINK  
13 - 16 Atom   name1   Atom name.
17  Character  altLoc1 Alternate location 
indicator.
18 - 20 Residue name   resName1Residue  name.
22  Character  chainID1Chain identifier.
23 - 26 IntegerresSeq1 Residue sequence 
number.
27  AChar  iCode1  Insertion code.
43 - 46 Atom   name2   Atom name.
47  Character  altLoc2 Alternate location 
indicator.
48 - 50 Residue name   resName2Residue name.
52  Character  chainID2Chain identifier.
53 - 56 IntegerresSeq2 Residue sequence 
number.
57  AChar  iCode2  Insertion code.
60 - 65 SymOP  sym1Symmetry operator atom 
1.
67 - 72 SymOP  sym2Symmetry operator atom 
2.
74 - 78 Real(5.2)  Length  Link distance

··

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] How to translate by angstroms

2009-01-21 Thread Angel Herraez
Hi Eran

Translation should be possible using move, if I remember correctly.
Not sure about zoom; I think it only works in percent.



--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Reset the view ?

2009-01-13 Thread Angel Herraez
Hi Umanga

When you have the initial view as you want it, use
show state
and store that script (in an internal variable* or saved to a file, 
write state), then later restore it either calling that script or 
loading the script file.

*) may be using Java, o Javascript, or even a Jmol user variable; it 
depends on how you setup your app.




--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Reset the view ?

2009-01-13 Thread Angel Herraez
 Thank you for the tip, but I noticed that write state doesn't support 
 in the Applet version?

Yes, as everything that writes to disk, it is not available for the 
unsigned applet. You can use application or signed applet for that.
Or just save to memory in a Jmol user variable to wich the output of 
show is sent.


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Question about moveto

2009-01-12 Thread Angel Herraez
Hi Eran 

 moveto timeSeconds {x y z} degrees zoomPercent transX transY {x y z} 
 rotationRadius navigationCenter navTransX navTransY navDepth 
 
 Can anyone offer some help as to what { 102 -219 -970 176.64} 

I'd say the 176.64 matches the degrees parameter. The braces are 
ignored, just there for readability, AFAIK



--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Using the sync command for 3D/stereographic visualization (on a GeoWall)

2009-01-12 Thread Angel Herraez
A paper that may be worth reading in this respect:

* (2008) Adapting a single-user, single-display molecular 
visualization application for use in a multi-user, multi-display 
environment.
http://www.cliftonforlines.com/papers/2008_forlines_molvis.pdf

(now linked from MultiUser_Jmol and Jmol_Literature pages in the 
Wiki)

El 21 Nov 2008 a las 22:15, Dean Johnston escribió:

 
 Jmol users,
 
  I've had a request to make my Jmol pages work with a GeoWall-type 
 setup. (If you're not familiar with GeoWall (www.geowall.org), it's 
 a low-cost stereo projection system. You setup a computer with a 
 dual-head video card, two projectors with polarizing filters, and 
 align the two projectors on the same screen. You can then use a 
 variety of software (including Jmol) to project two orientations, one 
 to each projector -- if you're wearing properly polarized glasses you 
 get a very nice 3D effect.)
[snip]

--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


[Jmol-users] VRML support and file extensions

2009-01-12 Thread Angel Herraez
Today I am playing with VRML export. Models export very nicely 
(restricted to atoms and bonds, it seems; not a complain, I knew that 
features were limited).
Jmol offers by default the .vrml extension for files.

To see the vrml files, I have installed Flux Player (application and 
browser plug-in), but it only accepts files with .wrl extension.

I am not used to vrml, so would like to get some feedback from savvy 
users about which is the most common extension. Depending on that 
feedback, maybe the default for Jmol could be changed to wrl?

BTW, I have just added info about VRML, Maya and POV-Ray export in 
the Wiki for future reference. Contributions are welcome.
http://wiki.jmol.org/index.php/File_formats


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Help

2009-01-09 Thread Angel Herraez
Hi Phan
I agree with Duan.
It may be a problem with the file path. Open the Java console and 
copy the exact error, and post it here.

For a safest test, put the pdb file and the Jmol.jar file in the same 
folder, then open the script console and type
   load yourfile.pdb
(do not use the top menu, File  Open, as that may insert the path)

If that works, it's most likely a path problem. Java has problems 
with folder names that contain spaces or non-English characters; it 
converts those characters to Unicode but then either Jmol or the OS 
do not interpret them correctly. (At least in my Spanish Windows 
setup.)


--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Jmol and Google Web Toolkit

2008-12-15 Thread Angel Herraez
El 15 Dec 2008 a las 11:46, Raphael André Bauer escribió:
 it seems that your observation is right and using the jmol.js breaks
 the GWT. However it is easily possible to use jmol without jmol.js and
 thus avoiding this problem. An idea is to use the Firebug plugin for
 Firefox that gives you the real html generated by jmol.js. A simple
 copy and paste into the GWT application solves that issue and GWT and
 Jmol work nicely together...

It will likely work without any trouble, but note that Jmol.js 
renders different code depending on the browser (at least for 
insertion of the applet). So it's not that simple.
That's one of the reasons why using Jmol.js is the recommended 
method.
The best would be to find the exact confilct between GWT code and 
Jmol.js code.



--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Jmol and Google Web Toolkit

2008-12-15 Thread Angel Herraez
El 15 Dec 2008 a las 11:46, Raphael André Bauer escribió:
 it seems that your observation is right and using the jmol.js breaks
 the GWT. However it is easily possible to use jmol without jmol.js and
 thus avoiding this problem. An idea is to use the Firebug plugin for
 Firefox that gives you the real html generated by jmol.js. A simple
 copy and paste into the GWT application solves that issue and GWT and
 Jmol work nicely together...

It will likely work without any trouble, but note that Jmol.js 
renders different code depending on the browser (at least for 
insertion of the applet). So it's not that simple.
That's one of the reasons why using Jmol.js is the recommended 
method.
The best would be to find the exact confilct between GWT code and 
Jmol.js code.



--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] one Label for a group of residues

2008-12-11 Thread Angel Herraez
Hi Umanga 

Yes, that's the behaviour.
If you want a single label you must select a single atom -- or a 
single coordinate, maybe at the center of the atom set. But that is 
not done with label, because labels are objects attached to atoms.

So you may either:

a) choose one of the atoms (manually chosen), select it and label it

b) use echo, which can be located at any coordinate:

select :a and (resno10 and resno50);
set echo myLabel {selected};
label Selection;



--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Jmol mediawiki extension

2008-12-09 Thread Angel Herraez
El 9 Dec 2008 a las 14:03, Nicolas Vervelle escribió:
 For example, I think you can stillrun Javascriptwithscripts 
 calling other scripts: 
 *   Create a wiki page with contents corresponding to a Jmol script with 
 Javascript in it. 
 *   Add a jmol tag in a page with a script calling the other script 

Aha, that's the sort of idea I wanted to hear (but had not imagined). 
Then maybe we should block the use of the script command too.
After all, we shouldn't need too much Jmol scripting flexibility 
inside a Wiki; just basic display options that can be pasted in the 
page, not in independent files.
I will test it this evening.



--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Jmol mediawiki extension

2008-12-01 Thread Angel Herraez
Hi Gerard 

Thanks for the suggestions.
Jmol is already fully internationalized and localized, over 10 
languages:
http://wiki.jmol.org:81/index.php/Internationalisation/Current_Status
 I'm not sure if the MediaWiki extension would need any further 
localization.


Does the  testing environment  that you mention need a web Wiki 
setup, or can it be tested locally? I would be interested on it, but 
haven't got a Wiki to implement it --nor the time to involvemyself 
into such a task--.



El 1 Dec 2008 a las 11:24, Brian Salter-Duke escribió:

 Hi folks,
 
 Gerard Meijssen [EMAIL PROTECTED] has asked me to pass this on
 to the Jmol list. I responded to this discussion on the Commons-l list:-
 
 [Commons-l] Support for Chemical Markup Language - followup
 
 --
 Hoi,
 
 If you want to get the JMOL software internationalised and localised,
 you may want to consider talking to the Betawiki people. We do the
 localisation of MediaWiki and we do the localisation of many of its
 extensions. We would be interested in working on JMOL as it is a lively
 and relevant software / community.
 
 I am also involved in a testing envirionment for MediaWiki extensions,
 if you are interested in using this environment, let me know.. I take it
 that you will convey my message to the JMOL mailing list ?  Thanks,
 Gerard


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


[Jmol-users] problem with pop-up in Java 6u10

2008-11-20 Thread Angel Herraez
Dear Jmol users:

-- For your information --

I have found a Java bug repainting Jmol's pop-up menu when the latest 
Java (6u10) is installed. It seems to be related  to the display 
driver/graphics card. I see it in Windows XP with any browser, only 
in my notebook but not in my desktop PC. It is absent in 6u7. It 
affects both applet and application (as well as other non-Jmol app  
applets like JChemPaint).

I've reported it to Sun Java and it is described here:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6773336

They shall be working on it.
If you have a similar problem (the pop-up menu has white patches 
while you hover the mouse pointer over it), you may want to follow 
that bug tracking or even to report details about your system.

Some screenshots are available at
http://www31.websamba.com/jpeg62/javaproblem/


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] installation

2008-11-18 Thread Angel Herraez
Hi Kris

I'm no expert in Linux, but it seems that your system doesn't know 
how to open jar files. So, you must invoke Java for that file:

   java -jar Jmol.jar

adding the proper paths to java and Jmol.jar, if needed

Another option is to try the script file included in the 
distribution, which for your system should be
  jmol
or
  jmol.sh
that is supposed to have the proper parameters, but you probably have 
to tweak it a bit

Let us know if you find the solution (or not)



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] jmol doesn't work with openjdk in Debian

2008-11-18 Thread Angel Herraez
El 18 Nov 2008 a las 14:29, Ondrej Certik escribió:
 do I need to install some files as well? I thought it will work out of the 
 box.

Right. Working with the demo pages is the safest way to assure that 
your system works. Nothing to set up on your side.


  http://www.javasonics.com/support/check_liveconnect.php
 I tried that page, and unfortunately, the java - javascript
 communication is not working for me (I tried all 4 options). 

That's quite clear: the communication is not working in your system. 
That will likely explain all your errors.


 Does this
 mean an error in openjdk in Debian? 

I'd say so, but... have you tried another browser in the same system? 
It might be Iceweasel's implementation of the JVM.
Is Iceweasel a Mozilla/Gecko based browser?


 exactly the problem is? If not, I'll report it again as a bug in the
 openjdk package -- but I am really new to these things, so the bug may
 be somewhere else.

If you reported the problem using
http://developer.apple.com/internet/safari/samples/ColorBlockApplet.ht
ml
and they replied it has not a mayscript tag, you should report with 
a site that has the mayscript tag, as Jmol demo pages do. However, 
that may be not the simplest example to offer to third parties (since 
it is inserted by the Jmol.js library, not directly).

In addition, don't be confused, if you get the Jmol window with the 
timer going on for ever, that means Jmol applet has not really 
finished loading.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] jmol problems on IIS windows server 2003

2008-11-17 Thread Angel Herraez
Hi SC

You need to give details about the errors you get in the Java 
console, or the URL for testing, so that some of us can see where is 
the problem.

(If you don't know how to find the Java console, see here
http://wiki.jmol.org/index.php/Solving_Java_Problems




-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Deleting connections

2008-11-14 Thread Angel Herraez
Maybe that is being affected by the setting (and / or) of 
 set bondMode 




-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Scripting documentation mirror

2008-11-13 Thread Angel Herraez
El 13 Nov 2008 a las 16:45, Rolf Huehne escribió:

 This copy doesn't seem to be fully functional. The version selection
 doesn't work and also the examples. Passing parameters to the HTML file
 doesn't seem to be allowed.

Thanks for checking Rolf. I just viewed the main page and didn't test 
it. I'm not very surprised that it doesn't work, because it lives in 
the SVN browse system, so maybe the javascript doesn't get loaded. I 
should have verified that.
So I will remove the link.



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Scripting documentation mirror

2008-11-12 Thread Angel Herraez
Thanks for raising this, Rolf

To me it sounds as a very interesting suggestion. From here in Spain, 
the page load time from the StOlaf server is regularly rather long. 
An alternative server would hence be of help.

Of course, I'm not sure of how difficult it may be to maintain an up-
to-date copy (automatically?)


 In the Wiki there could be created a page where anyone who maintains a
 mirror site could register it.

((forget this
I don't quite understand what you mean by register. Uploads of 
files to the Wiki are difficult (I can't even upload images lately). 
But Nico can comment on that as he knows the intricacies of the Wiki 
server.
))

Oh, I see now: you mean whoever keeps the mirror site adds a link in 
the Wiki, right? That's OK

Then the main issue is that Bob should remember to pack the pages 
periodically?


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] MEP isosurface coloring

2008-11-11 Thread Angel Herraez
Frieda, I'd say that you can set a custom range for charges, then the 
color range effectively used will be widened.
(I don't remember the syntax right now.)


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Label for Atomic charges

2008-10-30 Thread Angel Herraez
FyD wrote:

 Quoting Angel Herráez [EMAIL PROTECTED]:
 
 Thanks a lot Angel...
 
  http://q4md-forcefieldtools.org/REDDB/

Today I see the models in this page correctly. Behaviour of the 
spin checkboxes is disconcerting, though. The models keep rotating 
and changing even with the checkbox off.

 Which browser/OS do you use ?

Mostly Firefox 3, under WinXP.

I have no experience in Linux, sorry. Less in 64 bits.


 - With konqueror, or opera/firefox under linux 32-bits, I load the  
 applet and right click to display the Java Applet Window. 

Is that the script console?


 windows the position of this Java Applet Window is correct; under  
 linux it goes on an extreme side (left or right) of the screen. Any  
 idea why ?

That should be OS-specific, or Java-specific. I've read about having 
two monitors were either the console or the pop-up opens in the other 
one...


 Thanks. Concerning the CML file format, is it possible to add a  
 description of the FF atom types in this file format ?

That would depend on the official specification of the CML format. 
Jmol can be adapted to read anything the file contains, but it must 
be defined as an official format spec.


Good luck


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Atom color in .mol2 files

2008-10-30 Thread Angel Herraez
FyD wrote:

 At http://q4md-forcefieldtools.org/RED/index-test.php, one can see the  
 DMSO molecule (Tripos mol2 file format loaded).
 
 I am surprised by the color of the carbons/hydrogens is pink 

That's Jmol color for non-identified elements.


 I guess it is because the name of  
 the atoms are the following: C1 H11 H12 H13 S O C2 H21 H22 H23

It's usually an issue with misaligned atom names (at least in pdb 
format, I'm not used to mol2). Check the mol2 format specification.


 Does it mean that only the chemical symbols are recognized as atom names ?
 So what about atom names in amino-acids such as CA, CB etc...

Absolutely not. CA are read as carbon, type CA i.e. alpha carbon of 
proteins. But in PDB, there is a space before the C; if you shift it 
one character to the left, it would be read as calcium. 
In addition, pdb has a field specific for the element symbol (close 
to column 79) which will be used in preference to that dedcue form 
the atom name. mol2 may have one too.

1. Check your mol2 format and whatever program is generating it. 
2. Open the file in another viewer and see how it reads it, or even 
export it again to mol2
3. Edit the mol2 file and insert/delete a blank column where 
appropriate


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Atom color in .mol2 files

2008-10-30 Thread Angel Herraez
OK, I've got it

Jmol is not using the atom name for element identification; mol2 has 
an atom type field which seems to be both the cause and the cure.
http://www.tripos.com/data/support/mol2.pdf

In your DMSO file, the atom type for the offending atoms is CT and 
H1.

This is not supported by mol2 spec. See
http://www.tripos.com/mol2/atom_types.html
http://www.sdsc.edu/CCMS/Packages/cambridge/pluto/atom_types.html

If you cahnge that to just C and H, Jmol behaves. You should maybe 
use the proper types, which seem to be C.3, H, S.o, O.2
They also work in Jmol.

  I guess it is because the name of  
  the atoms are the following: C1 H11 H12 H13 S O C2 H21 H22 H23

As I said, not that name, but the type at column 50.



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Atom color in .mol2 files

2008-10-30 Thread Angel Herraez
El 30 Oct 2008 a las 13:44, FyD escribió:
 Why not simply taking the column of the FF atom types available in the  
 Tripos mol2 file format  display it as it is ?

I think it's not a question of just displaying them, because they 
must be converted (mapped) to element names, or you'll get the pink 
color problem.



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Problem running Jmol

2008-10-22 Thread Angel Herraez
Hello, Max

 I tried to run Jmol on Linux/Fedora but just after I type ./jmol I only
 get a blank screen with only one icon menu(open a file).
 Could anyone help me?

Do you get a Jmol window? with black background?
Is there a menu at the top?

Try running it with
  java -jar Jmol.jar

Give more details of what files you have.



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] unloading molecule

2008-10-16 Thread Angel Herraez
Hi Zeyar 

1. The zap command is what will clear the display.

2. Whenever you load a new molecule, the old one will be removed; no 
need to zap it.

3. I'm not sure if you can quit Jmol application from a script. I'll 
try to find out.




-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] isosurface command

2008-10-14 Thread Angel Herraez
Frieda, how about

  {*}.partialcharge = {*}.property_temperature.all

?


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] AMBER: Jmol 11.7.1 pre-release version reads AMBER trajectory/coordinate files

2008-10-10 Thread Angel Herraez
El 9 Oct 2008 a las 18:12, Robert Hanson escribió:
 Very slick, Angel! Files loaded for me in about 5 seconds. I forgot 
 that you could zip up the data files. Of course!

In fact, they had been gzipped from the beginning; my friend doing 
this has some disk space constraints (he's running rather huge 
molecules and dynamics) and he's got used to gzip always. When he 
asked we should ungzip them, I said Jmol should cope with it, and it 
did indeed :-)
He's given me permission to use and distribute the files, so if you 
think it necessary we can add them to the collection of test files, 
or to your doc/demo pages.

 Is there some way to differentiate a water molecule from the water 
 box ?
In this particular case, that water molecule has a residue name of 
[CAT], so Jmol doesn`t see it as water which is only [WAT] in the 
FILTER switch.
(I think it's the water molecule involved in the catalytic mechanism, 
so rather importat among the others, and probably somehow restrained 
in the MD)

BTW, until I tried and then read the doc, I was expecting I could use 
normal atomic expressions in FILTER, like not water. Only atom and 
residue IDs, it seems.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Realistic Probe radii for cavity search?

2008-10-06 Thread Angel Herraez
El 6 Oct 2008 a las 6:46, Robert Hanson escribió:
 I recommend leaving the envelope radius at 10. It is used to define 
 the outer limits of the molecule, thus defining what the openings of 
 the cavities look like. Feel free to try different settings, though.


In my very short experience with cavities, I was finding some 
cavities on the surface of the protein until I cut down the 
envelope value. I got the feeling that the adequate value will depend 
on the protein overall size.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


[Jmol-users] moving draw objects produces duplicates

2008-10-02 Thread Angel Herraez
I am with 11.6.RC18 doing something I've done before, but I am 
finding a strange effect. 
If it makes any sense, I will investigate further and report details.

1. I draw a small sphere using
draw pru diameter 0.3 {3.6 -1.35 1.4}

2. Then I activate
set picking draw

3. and move the object using Alt+drag. Instead of moving, the sphere 
duplicates, that is, the original one stays there while I move the 
new one.

4. If I request the info with
show draw
I get this:
draw ID pru diameter 0.3 [ 0 {3.6 -1.35 1.4} ]  [ 1 {3.6 -1.35 1.4} 
]  [ 2 {3.6 -1.35 1.4} ]  [ 3 {3.1282716 -1.4552727 1.9073887} ] ;
draw ID pru fill noMesh noDots notFrontOnly fullylit;


Is this intended, or meaningful, or just a byproduct or bug?
It was not happening with 11.5.x versions





-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Jmol 11.6 release -- delayed

2008-10-02 Thread Angel Herraez
My problem with 
{selected}.y = 0
has been solved too in RC18


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] jmol demo on sourceforge

2008-10-01 Thread Angel Herraez
Hi Jennifer

Thanks for reporting this. However, I am seeing no problem.
Please,
1.- Clear your Java cache
(procedure described at
http://wiki.jmol.org:81/index.php/Solving_Java_Problems#Java_cache

2. Clear your browser cache. Quit your browser and reopen it

3. Try the page. If the problem still persists, please report 
details: your browser, OS and Java versions, and any 
messages in the Java console.

I assume that you mean the Jmol applet in the front page, not in the 
demo sections, right?


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] final testing appreciated

2008-10-01 Thread Angel Herraez
Using 11.6.RC17 I get this error:

eval ERROR: el argumento no es válido
line 1 command 64 of  file null:
  { selected } .  y  = 0

The offending script is 
select 2.0; spacefill off; wireframe 0.04;  color [xFF00FF]; 
{selected}.y = 0; 

It worked in 11.5.41 at least

(I seem to recall having problems with this before)


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] volume of cavities inside proteins?

2008-09-30 Thread Angel Herraez
Small additions to Bob's reply:


 The cavities are totally created within Jmol. No additional program.

The command is isosurface, with cavity keyword


 Animations. 100 PDB files is not a problem. You can either load them 
 as one file 

Or load them one file at a time, using load append. The filenames 
can probably be fed using a loop in Javascript or in JmolScript, if 
they are something like  protein1.pdb, protein2.pdb, protein3.pdb etc





-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] final testing appreciated

2008-09-29 Thread Angel Herraez
I've added some information about clearing Java cache and other Java-
related stuff into the Wiki: main page  Running Jmol  Solving Java 
Problems
Also linked from Running Jmol Application and Running Jmol Applet

Any confirmation or correction of that info from the Mac or Linux 
users will be welcome --I cannot test those systems.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] frame [array of models]?

2008-09-25 Thread Angel Herraez
El 24 Sep 2008 a las 21:17, rob yang escribió:
 Hmm, that does the trick. What if I want to animate only selected 
 models too? 

I'm quite sure that there are options for choosing the frame range 
involved in animation. Check the doc. But maybe not possible for non-
contiguous frames.


 including  ones that are not displayed which results in blackout period. 

Yes, that sounds likely the way it is.

How many frames do you have? You could fake the animation by 
scripting them one at a time and using a loop.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] frame [array of models]?

2008-09-25 Thread Angel Herraez
(following my previous post)

Rob,
You could also try to **delete** the unwanted frames (I think it's 
done with  a variant of ZAP) then play the animation




-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Browser Crahes While Loading Jmol

2008-09-25 Thread Angel Herraez
Hi Vinu

El 25 Sep 2008 a las 12:31, vinu manikandan escribió:

 I had mailed the Jmol users blog couple of times, may be i was not 
 clear in my question that's why ididn'tget any answers.

Maybe. Anyway, the list is so active that sometimes messages just 
drop down too quickly. Don't hesitate to insist.

 Sir this is the code i used in my CGI script.
 Html
 Headscript type=text/JavaScript src=Jmol.js/script/head
 Bodyscript type=text/JavaScriptjmolInitialize(jmol)/script
 script type=text/JavaScript
 jmolApplet(150, 1UW5.pdb; select all; color green; select 1-
 55;color red; select all; spacefill off; wireframe off;cartoon);

First, I think you need   load 1UW5.pdb;
you probably have it already, or the molecule would not load at all.


 Sir the values 1 and 55 is not static it will change. But the PDB 
 structure will be the same.The values are coming from another 
 program.

But, will the page be reloaded with the new values? Then, there is no 
way to avoid loading the model again. But the browser should load it 
from the cache, so there is no delay.

 My problem is that with such a script the Jmol loads the PDB 
 structure every time andbecauseof that mybrowsercrashes 
 frequently.

This is the problem, but it should not happen irrespective of your 
page code. Please, specify which browser version and Java version you 
are using. Try another browser to see if the problem is still there.


 Is there any way such that Jmol loads the PDB structure one Time but 
 mapping can be done without loading the structure again and again.

If you can have a setup where the other program provides the new 
values without reloading the page, then you could achieve what you 
want separating the script for the load line, for example with a 
button or better a javascript event.

If you tell me how your other program can provide the new mapping 
to the page (e.g. in a form or a javascript variable), I can tellyou 
how to put that part separate from the model loading.
If, contrarly, the program provides a full page reload, then there is 
no possibility to avoid reloading the pdb model.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Browser Crahes While Loading Jmol

2008-09-25 Thread Angel Herraez
Vinu manikandan wrote:

 Sir I restructured the program in such away that the different values 
 are provided in the same page for example
 1)1-55,
 2)100- 120,
 3)130-140 and
 I want to select these regions in the Jmol with out loading the 
 protein structure again and again on the PDB Structure 1UW5.pdb one 
 by one by providing a hyperlink to each of these values.
 When I had given the simple hyperlink
 a href=PDB.pl?s=1e=10pdb=1UW5.pdb1-10/a

Yes, if you use the hyperlink in that way you reload the page. You 
just need to send Jmol a script from within the page. 
Using a link it would be something like:
(I assume that you are using Jmol.js)

script type=text/javascript
jmolLink(select 1-10; color cyan; , 1-10)
jmolLink(select 1-55; color cyan; , 1-55)
jmolLink(select 10-120; color cyan; , 100-120)
/script

The first argument is the script, teh second is the text displayed as 
hyperlink (may be anything you want).
The color cyan is just an example of a way to act on the selected 
residues. Dots or halos are other good choices for highlighting.

You can also use buttons or a drop-down menu instead of the hyperlink 
--just cosmetic, it depends on which look you prefer; it will work 
the same.

 Sir, can you provide me an alternative way such that the Loading of 
 the Protein happens a single time and mapping can be done multiple 
 times.

See above


 Sir,I am using the new Mozilla Fire fox 3.0.2 and the Java jre6. I 
 had checked this with other Browsers such as IE6, Safari and New 
 Google Browser Chrome.

Good, the purpose of my question was whether you are also 
experiencing crahses with the other browsers (in which case the 
problem may be in the page code) or only in Firefox (then it's a 
browser-specific problem).



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] final testing appreciated

2008-09-25 Thread Angel Herraez
Just found this (well, not me, Google of course):

Clearing Java cache on Linux, Mac, Windows:
http://www.uwplatt.edu/oit/howto/java-cache.html




-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] help needed -- bonding radii of anions

2008-09-17 Thread Angel Herraez
In case it is of help, I found in our library a 56th edition (1975-
76) and a 77th edition (1996-97) of the CRC Handbook of Chemistry and 
Physics. Both have tables entitled 
CRYSTAL IONIC RADII OF THE ELEMENTS (pages F209 to F210 and 12-14 
to 12-15 respectively)

with these values:

  (8  4) + (-2 + 4),  1320, // O-2
1.32  (56th)
1.36 for CN 3 (coordination number, 77th)
1.40 for CN 6

  (8  4) + (-1 + 4),  1760, // O-1 // WAY too large?
1.76  (56th)
1.37 for OH(-1), CN 6  (77th)

  (14  4) + (-4 + 4), 2710, // Si-4
2.71  (56th)
no entry (77th)

  (14  4) + (-1 + 4), 3840, // Si-1 // same problem here?
3.84  (56th)
no entry (77th)

  (34  4) + (-2 + 4), 1910, // Se-2
1.91  (56th)
1.98  CN 6 (77th)

  (34  4) + (-1 + 4), 2320, // Se-1 // same problem here?
2.32  (56th)
no entry  (77th)



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] synchronizing select commands in multiple jmolcheckbox(es)

2008-09-16 Thread Angel Herraez
Avehna,

It appears to me that your solution is to have each checkbox call 
only the part of script specific to the relevant piece of protein. 
So, all your problem is a scripting one.


 They are several segments, so I will need several 
 combinations if I'm using just jmol commands. 

No, you shouldn't need combinations. Each checkbox should call code 
that only affects its relevant portion of protein.


 the end define the whole jmol command once in dependence on which 
 checkbox was picked before. 

That is possible, but I think you can avoid that complex solution.


 jmolSetCheckboxGroup(chkMaster, chkBoxes)

I don't think this is suitable for your needs.


 problem using this function, I dont know why it seems to me a little 
 complicated.

It is, a little bit.


Let's say you want this:

* protein segment 1 is residues 3 to 20
* protein segment 2 is residues 30 to 50
* checkbox 1 will color segment 1 in blue
* checkbox 2 will color segment 2 in red
* unchecked will color in default CPK

This is what you need:

In the loading script, include:
define segment1 3-20; define segment2 30-50; 

And for the checkboxes, this:
jmolCheckbox(define temp selected; select segment1; color blue; 
select temp;, define temp selected; select segment1; color cpk; 
select temp;, segment 1)
jmolCheckbox(define temp selected; select segment2; color red; 
select temp;, define temp selected; select segment2; color cpk; 
select temp;, segment 2)


(You can also avoid the initial definition and integrate them in the 
script, like
jmolCheckbox(define temp selected; select  3-20; color blue; select 
temp;, define temp selected; select  3-20; color cpk; select 
temp;, segment 1)

)

OK?


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Jmol Tutorial-Authoring Template Released

2008-09-10 Thread Angel Herraez
El 10 Sep 2008 a las 5:13, Robert Hanson escribió:
 http://www.umass.edu/molvis/bme3d/materials/jmoltuts/antibody/contents
 /contents.htm
 Jmol Version 11.3.13 2007-08-28 16:07
 
 really?

I'm quite sure that tutorial was written some time ago, and does not 
use Eric's newest JTAT. So it's probably so, really.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] identifying proteins in mol2 files

2008-09-10 Thread Angel Herraez
Dear Frieda

I've never tried that. From the doc
http://www.tripos.com/data/support/mol2.pdf
it seems that atoms can have IDs and residue IDs; they quote an 
example:
1 CA -0.149 0.299 0.000 C.3 1 ALA1 0.000
BACKBONE|DICT|DIRECT
1 CA -0.149 0.299 0.000 C.3
[...] the atom is named CA and is [...] It belongs to the
substructure with ID 1 which is named ALA1. 

So, Jmol should be able to interpret that, but maybe the file reader 
has not been set for that.
As far as I know, the protein is determined based on bonding and 
key atom names (N, CA, C) within the same residue.
Similarly for residue names.

A quick test with a pdb file read into Accelrys DS Viewer 1.7 and 
saved into mol2 shows that the atom IDs are read in Jmol (example: 
select *.CA works), but not recognized as protein. select ala 
doesn't work either.
So maybe it's just the residue ID part that is not being interpreted. 
Notably, that goes after the coordinates, rather than before them as 
in pdb.



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] beyond a limitation of JMOL: TiBS article on publication-integrated 3D models in PDFs

2008-09-05 Thread Angel Herraez
just a record for the future...

 fascinating. So one would simply need to write a U3D file format 
 exporter. Very good project for someone. 

http://sourceforge.net/projects/u3d
Universal 3D Sample Software
Set of libraries to write, read, extend, render and interact with U3D-
formatted data, as defined by standard ECMA-363. Intended as starting 
point for tools and applications to support U3D (exporters, 
importers, authoring packages and interactive viewers)
Apache License V2.0
Programming Language : C++
Registered : 2005-03-05 
Last Update: Jan 16 2007 



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] New Feature Request: input parm for start/end residue numbers

2008-07-23 Thread Angel Herraez
I am following this thread on the SF feature request system

El 23 Jul 2008 a las 15:02, [EMAIL PROTECTED] escribió:
 Rolf Huehne of JenaLib has told me that Jmol does not currently have 
[...]



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


[Jmol-users] screenshot generation from Jmol

2008-07-23 Thread Angel Herraez
[ Was:
Re: [Jmol-users] At request of AHerraez, discussion of feature 
request moved to this list ]

sorry for the mess of postings  :-)


Second part of reply, regarding the generation of images.

David  Halitsky  wrote:
 If (1-4) are possible as specified above, the next question is 
 whether there is a way to capture the two views that the user creates 
 in Frame A and Frame B so that they can be produced in a document of 
 the type that appears in each case in the StrucClues Case Library 

Yes, the views can be captured to the user's computer, in a web page 
(e.g. popup window) from where the user can copy or save them to 
disk, using the browser's capabilities.
If you need to capture to the server, I cannot say *but see below.

The discussion on how to make snapshots is quite long. There are 
several mesages in the list some time ago and there are several 
places that use this functionality; Bob has at least one, I dont0 
remember exactly where right now, and I have a testpage/tutorial at
http://biomodel.uah.es/Jmol/export-image/index.htm
See if you can make it from that, then ask if you need help.



 (As you can see, RasMol was used interactively to produce the views 
 in the case library, and screen shots of the RasMol views were then 
 saved to PowerPoint and the PowerPoint was then converted to jpeg or 
 gif.) 

From the screenshot, displayed inside the browser, you can save 
directly to your disk in some browsers, or else copy-paste into any 
image editing program (I would not recommend Powerpoint, as the 
quality of saved images is poor). You get a jpeg file directly.

Now that I think of it, in fact all the trouble was getting the 
server-generated image into the client browser, so there should be a 
way to store the image in the server maybe.




-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] using atom expressions in set labelgroup or set labelfront

2008-07-21 Thread Angel Herraez
Thanks, Bob.

It's not doing what I was imagining, though.

set labelGroup on {44-58};

So the atom expression says which atoms the label setting will be 
applied to, and not which atoms the label will keep in front of?

(I am trying to label protein helices with a label that stays in 
front on the helix stretch, not hidden by other residue in that same 
stretch but hidden if another helix comes in front)



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Announcing introductory web tutorial on Jmol and making web pages...

2008-07-18 Thread Angel Herraez
Jonathan, this looks a very interesting idea.
I will work through it and make suggestions later on. A Spanish 
traslation could be very useful too. I likely will work on both 
during August and come back to you.

First and quick impressions:
* The link on 2nd line, Jmol Eport to Web... Tutorial takes to this 
same page -- confusing--  And there is a missing x in export
* The body-table-row has a scrollbar but the page has another, at 
least in Firefox. The outer one should not be needed; you can look 
for a fix in the source code of my resizable Jmol templates.

Congratulations for the idea




-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


[Jmol-users] using atom expressions in set labelgroup or set labelfront

2008-07-18 Thread Angel Herraez
The doc
http://chemapps.stolaf.edu/jmol/docs/?ver=11.4#setlabels
says that you can put an atom expression, between braces, after 
set labelFront or set labelGroup

I cannot get this to work in either 11.4.5 or 11.5.47, as I get a 
syntax error:

 set labelgroup {44-58}

·
ERROR en guión:el argumento no es válido
line 1 command 1 of file null:
 set labelfront  {  44 - 58 }
Script completed
·

I've tried {} or {()}, and I've tried a user defined set or the above 
expression, or a single residue number.

Can anyone advise if I'm getting it wrong, or there is a bug, or the 
doc is not exact?
Thanks



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] PDB question

2008-07-18 Thread Angel Herraez
To me, it looks like an error in the pdb data. Indeed, ALA 140 is the 
end of the chain, so a sheet from 137 cannot go farther. The position 
looks good to pair with the other strand, although quite wavy.

As far as I know, the HELIX and SHEET records, if present, are put 
there by the authors to force definition of secondary structure 
elements. So, the method to determine them would be up to the 
authors.
But they should have passed through validation as part of the PDB 
deposition process.

Hmm...



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] gradient coloring isosurfaces

2008-07-17 Thread Angel Herraez
Thanks, Bob 

 I think that is intentional -- how you light the surface is not a 
 characteristic of the surface itself.
 It's a property of the state.

If that's so, then Ok; I'll just have to add the fullyLit parameter 
when loading from disk.
 But the jvxl file does include it on line nr.12:

1.4E-45 14112 9380 -1 0.0 0.0 0.0 0.0 rendering:isosurface mysurf 
fill noMesh noDots notFrontOnly fullylit

that's the reason why I thought it was being saved.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Fwd: Protein Explorer

2008-07-17 Thread Angel Herraez
El 17 Jul 2008 a las 10:24, Bob Hanson escribió:
 Jmol Protein Explorer is ready for testing and may be considered in 
 beta state.

Wow, Bob!

I know a bit about PE internal complexity, so that must have been a 
huge effort. 
Congratulations!




-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Save/load state command

2008-07-16 Thread Angel Herraez
I also think that a fixed path is not good.
However, from Nick's quote
 
 # Jmol state version 11.4.4  2007-12-20 06:37;
   # fullName = jmolApplet0[343951889313757];
   # documentBase = file:/Users/ngreeves/Sites/external/JmolPopup.htm;
   # codeBase = file:/Users/ngreeves/Sites/external/;

The initial # will prevent Jmol from reading those lines, so that's 
really just a comment and will not have any effect on final behaviour 
of the state script.
Check the line that starts with load  and see which is the path 
there.



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Save/load state command

2008-07-16 Thread Angel Herraez
 Web: load /*file*/http://chemapps.stolaf.edu/jmol/docs/examples-
 11/data/quartz.cif {1.0 1.0 1.0}; 
 DW:load /*file*/file:/Volumes/nggroup/external/test/histidine.cif; 
 (this is on Mac OS X) 
 Both fixed paths.


Yes. I now remember seing this before, though I don't use state 
often.
The question is that since the Jmol app can load files from anywhere 
in the local file system, it adds the full path to the state script, 
even if Jmol and the model are in the same folder. So you basically 
end up editing the state script file always.

I think it would be more useful for general development if the saved 
path was relative --at least when Jmol and the model are in the same 
folder, or the model is in a subfolder below Jmol--. Of course, this 
usefulness depends on what the developer has in mind, mainly moving 
or publishing those files or just using them in the local computer 
only.



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] gradient coloring isosurfaces

2008-07-11 Thread Angel Herraez
Bob Hanson wrote:

 Newly available in Jmol 11.5.46 
 (http://chemapps.stolaf.edu/jmol/docs/examples-11):
 
 You can now use the FUNCTIONXY keyword after the MAP keyword 


This is wonderful, Bob!
It's working and great-looking.

I found a bug (in 11.5.46, haven't tested other versions yet): 
loading an isosurface from disk (colored or not) ignores the 
fullyLit state, which was on when the surface was created and 
apparently is included in the saved jvxl

I also noticed some inconsistencies or mistakes in the documentation 
of functionXY for returning string or array formats, between your 
last message and what is in the web doc. I will post the details 
later.




-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


[Jmol-users] jvxl.jar file (was problem loading functionXY isosurface from file)

2008-07-08 Thread Angel Herraez
Thanks, Bob. Loading functionXY isosurfaces from disk is now working 
OK with 11.5.46_dev  from your site

A separate question: I see that there is a jvxl.jar file in your 
Jmol.zip  Is this file needed for the applet? What's its purpose? I 
don't think I've read anything about it.



-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] gradient coloring isosurfaces

2008-07-08 Thread Angel Herraez
It seems that my question was not clear, so here I go again:

I want to know if there is a way to (contour) color a surface without 
relaying on an external (cube) file that provides the color mapping.
For example, to color based on the z coordinate of the surface's 
points, or by distance to a certain atom.

Or, how can I generate a color mapping file without having Gaussian.



-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


[Jmol-users] gradient coloring isosurfaces

2008-07-03 Thread Angel Herraez
I am making an isosurface using a math function and would like to 
color it according to the z value.
All examples of contouring and colormapping I find are based on an 
external (cube) file with the coloring data. Is there a way to color 
the surface without external data?

Thanks


-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Label a bond?

2008-07-02 Thread Angel Herraez
 1) Is it possible to draw a sphere, filled or sketched like the one  
 on: http://accelrys.com/products/discovery-studio/pharmacophores/ 
 pharmacophore.jpg or http://www.biomedcentral.com/content/figures/ 
 1471-2210-6-11-7.jpg?

Yes, you can draw spheres using isosurface and make them 
opaque/translucent; not sure about mesh-wire, but maybe

A bit outdated doc, but simpler and still useful:
http://biomodel.uah.es/Jmol/surfaces/inicio.htm#nonMol
and the full doc:
http://chemapps.stolaf.edu/jmol/docs/?ver=11.4#isosurface


Example (sphere around atom):

isoSurface mySphere center (atomno=6) sphere 1.5 mesh nofill

or around the center of an atom set:

isoSurface mySphere center (C2, C3, C4) sphere 1.5 mesh nofill

or in a 3D coordinate:

soSurface mySphere center {1.5 0 -0.5} sphere 1.5 mesh nofill

(play with mesh/nomesh, fill/nofill, dots/nodots, opaque/translucent)

 2) Can I add atoms/bonds via the scripting language? If not, I guess  
 I can create a simple input file and append it?

Probably both ways.

Bonds are created using connect:

connect (C1) (O3) 
connect (C1) (O3) double

Atoms... maybe with the data command, but I'm not used to that. You 
can also fake them as big dots using draw, depending on your needs
·
 Dr. Angel Herraez
 Dep. Bioquimica y Biologia Molecular, Universidad de Alcala
 E-28871 Alcala de Henares  (Madrid), Spain


-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Label a bond?

2008-07-02 Thread Angel Herraez
 Can I make the lines in the 'mesh' thicker in some way? 

No idea.

 They are hard 
 to see on white background if a large molecule. Looked in the 
 scripting doc for isosurface but did not see any option for that. 

Then there is probably no way to do it.
Try to use another color with better contrast.


 What I did see was that with resolution 2 or three, for example: 
 isoSurface mySphere color green resolution 2 center {-3.3021 3.1716 
 0.3118} sphere 1 mesh nofill 
 the sphere is trunkated. Is this deliberate on too low resolutions? 

Not sure, but I'd say the latter.
The resolution value is set in points per Angstrom. One calculated 
point every half angstrom looks like very few points indeed, so I'd 
not be surprised if your sphere were a cube!

·
 Dr. Angel Herraez
 Dep. Bioquimica y Biologia Molecular, Universidad de Alcala
 E-28871 Alcala de Henares  (Madrid), Spain


-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Label a bond?

2008-07-01 Thread Angel Herraez
Hi Ola

(in Spanish:   Hola, Ola :-)

 I'd like to draw a line between two atoms and label the line. How can  
 I achieve this in jmol? 

The command (dates back to RasMol and Chime) is monitor
synonyms: measure, measurement

Oh, no!  You want a custom label, and that will only be good for no 
label or a distance label.

One solution is to use draw

example: if your atoms are number 3 and 5,

draw myLine (atomno=3) (atomno=5)
set echo myEcho $myLine
echo Ola

You can use instead any other way to identify the atoms; put 
parentheses around.

You can specify line width, line color, and label color:

draw myLine width 0.15 color yellow (atomno=3) (atomno=5)
set echo myEcho $myLine
echo Ola
color echo yellow


 Can I use 'select' and 'label' together, like  
 'select bond X; label myLabel'? 

I don't think you can select bonds, but you can select atoms:

set echo myEcho {atomno=3 or atomno=5}
echo myLabel

or

define bondX atomno=3 or atomno=5
set echo myEcho {bondX}
echo myLabel



 Also, is it possible to add a  
 custom label to an angle between 3 atoms?

Not using measure, I think. But you can use either echo (3D-
positioned) or draw (a point in 3D space):

draw myAngle (O2) (C1) (C3) #this will draw a solid triangle
set echo myEcho {O2 or C3}  # no commas inside braces, must use OR
echo Ola's angle

or, line instead of triangle:

draw myAngle1 (O2) (C1)
draw myAngle2 (C1) (C3)
set echo myEcho {O2 or C3}
echo Ola's angle

or even

draw myAngle1 (O2) (C1)
draw myAngle2 (C1) (C3)
draw myLabel Ola's angle {O2 or C3}


Or, if you prefer this look:

measurement (O2) (C1) (C3)  
set measurementLabels off
set echo myEcho {O2 or C3}
echo Ola's angle
color echo white



-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


[Jmol-users] label tag on checkboxes and radio buttons - change in Jmol.js

2008-06-17 Thread Angel Herraez
Jmol users:

Please, note that starting Jmol 11.5.41, the checkboxes and radio 
buttons generated by the Jmol.js library will have an added label 
tag surrounding the associated text. The effect is that clicking on 
the text will have the same effect as clicking on the checkbox or 
radio button themselves.

I hope you find this convenient, as I do. I think this is a commodity 
and frequently used in well-designed websites. There is a lesser need 
for aiming at the control, so it improves usability.


Examples:

Color:   o black,  o white
   you can click either on the radio button (here represented as o) 
or on the words black, white

[ ]use labels
   you can click either on the checkbox (here represented as [ ]) 
or on the phrase use labels
  

Put more explicitly:

jmolCheckbox(scriptWhenChecked, scriptWhenUnchecked, labelHtml, 
isChecked, id, title)

   Whatever you put in the labelHtml parameter will be the text 
surrounded by label tags.


jmolRadioGroup(arrayOfRadioButtons, separatorHtml, groupName, id, 
title)

  The second item in each array element of the arrayOfRadioButtons 
will be the text surrounded by label tags.


jmolRadio(script, labelHtml, isChecked, separatorHtml, groupName, id, 
title)

Whatever you put in the labelHtml parameter will be the text 
surrounded by label tags.



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] selection using modulus -- new feature: select() function

2008-06-13 Thread Angel Herraez
It's working, Bob - Wonderful!

This fits my plans/needs for the 3D phase diagram page 
(in that project, I am loading two files 4 times, in just 4 frames, 
so specifying the atomNo are not enough, I needed the atomIndex and 
the modulus to select specific groups of atoms easily).



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] properties of labels associated to drawn objects

2008-06-13 Thread Angel Herraez
This post of mine seems to have gone unnoticed. Sorry to bring it 
back again. Any ideas whether it is possible?

El 2 Jun 2008 a las 11:55, Angel Herraez escribió:

 Hi
 
 The DRAW command allows to include a text label associated to the 
 drawn object. This is an excellent tool, but I'd need some 
 customization:
 Is there a way to control the font size and color of such labels? 
 
 draw myLine color green diameter 3 important line {2.6 -0.7 -0.9} 
 {2.6 -3.4 -0.9}; 
 
 Right now, I get them in white (since applet background is black), 
 SansSerif, about 14 points. If not possible, a good default would be 
 to match the object's color. I know I can use 3D-positioned echos, 
 but it is much simpler this way.
 
 Bonus: How is hoverText specified differentially to text in the 
 DRAW command?
 
 


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] properties of labels associated to drawn objects

2008-06-13 Thread Angel Herraez
Oops...

Here is the answer to my 2 questions, in a one-year-old post:

Re: [Jmol-users] User-positioned echo trapped in window
Bob Hanson
Wed, 20 Jun 2007 06:11:14 -0700

That's fixed now for 11.2.1 and 11.3.0.

Apparently draw text+translucency was never tested. I'll change the 
documentation to match.

 draw text1 {3 4 5} some text

will display a simple text message (not multiline; just colored to 
contrast with the background) next to the first vertex of a draw 
object. 
This text will appear at all times if the default set drawHover OFF 
is 
in effect, even if the draw object itself is invisible due to setting 

its color to translucent 1. If one has set drawHover ON, then the 
text 
will only appear when the user hovers over one of the points 
associated 
with the draw object.

If more complex, colored, or translucent text is desired, use ECHO 
instead:

 set echo myecho {3 4 5}
 echo some | more complex | text
 color echo translucent white

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


[Jmol-users] selection using modulus

2008-06-10 Thread Angel Herraez
Hi
I have a complex loading of several models and I need to select a 
combination of atoms based on their atomIndex property and the 
mathematical MODULUS operator.

I have tried 
select (atomIndex % 427) = 397;
but a get an error, a comparison operator was expected

It seems that the limitation is in operating with atomIndex before 
the comparison, since
select (atomIndex / 50) = 397;
gives the same error, while
select atomIndex = 397;
works OK

What is the way to achieve this?


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] getProperty out of sync

2008-06-10 Thread Angel Herraez
El 10 Jun 2008 a las 11:01, rob yang escribió:

 Thanks Rolf for providing an example. It works as expected. BTW, how 
 did you display the Loading, please wait messages? I like the 
 feedback messages that keeps the users from thinking that jmol is 
 doing nothing..


I've never sat down to set a way of doing this and apply it to all my 
pages, but I've seen several pages that use different approaches. It 
would be a good idea to set a central repository of solutions, 
maybe in the Wiki, so that the tricks can be easily found when 
needed.

There it goes: I've opened the section
http://wiki.jmol.org:81/index.php/Loading_Notice
please, contribute.



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


[Jmol-users] Loading, please wait messages

2008-06-10 Thread Angel Herraez
Hi Jmol users

I've just opened a section in Jmol Wiki where we can share methods 
for showing a Loading, please wait kind of message in the page 
while Java + JmolApplet + files are being (down)loaded.

http://wiki.jmol.org:81/index.php/Loading_Notice

Please, contribute your methods there. I hope that in this way we all 
will have a place where the tricks can be easily found when needed.



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


[Jmol-users] properties of labels associated to drawn objects

2008-06-02 Thread Angel Herraez
Hi

The DRAW command allows to include a text label associated to the 
drawn object. This is an excellent tool, but I'd need some 
customization:
Is there a way to control the font size and color of such labels? 

draw myLine color green diameter 3 important line {2.6 -0.7 -0.9} 
{2.6 -3.4 -0.9}; 

Right now, I get them in white (since applet background is black), 
SansSerif, about 14 points. If not possible, a good default would be 
to match the object's color. I know I can use 3D-positioned echos, 
but it is much simpler this way.

Bonus: How is hoverText specified differentially to text in the 
DRAW command?


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Rotate a fragment around a bond

2008-05-08 Thread Angel Herraez
Nickolas, use parentheses instead of braces:

rotateSelected molecular spin (atomno=1) (atomno=2) 60 

Works for me


-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Rotate a fragment around a bond

2008-05-08 Thread Angel Herraez
Sorry, it wasn't that. It's working for me the same with parentheses 
or braces.

El 8 May 2008 a las 11:56, Angel Herraez escribió:

 Nickolas, use parentheses instead of braces:
 
 rotateSelected molecular spin (atomno=1) (atomno=2) 60 
.

Can you send me the file and script desired?


-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Rotate a fragment around a bond

2008-05-08 Thread Angel Herraez
Nickolas, this seems to be a bug in Jmol 11.2.14

I've tested it locally with both 11.2.14 and 11.4.2 and the latter 
works OK.
So, you should update your Jmol



-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] [Jmol-developers] jmolApplet0 inside div

2008-04-22 Thread Angel Herraez
(moving this message from developers to jmol-users list)

Hello Mark

First, I don't think the error is specifically due to the applet 
being inside a DIV. Maybe the onMouseOver event is being called 
before the applet has had time to load.  **No, see below

In any case, which element is the onMouseOver attached to? I'm quite 
sure you cannot do it for the applet, and if you do it for the 
enclosing div, it won't work since the applet covers it and does not 
let the div bgcolor to show up. If you want the applet background to 
change, you must use script color background [x66FF00]

Most important --and now I see that this may be the cause of the 
error--, the parameter in jmolApplet is the applet suffix, not its 
name. So, when you do
 jmolApplet(500, jmoltext,'jmolApplet0')
you are in fact defining an applet with ID jmolAppletjmolApplet0
(see http://jmol.sourceforge.net/jslibrary/#jmolApplet)

Good luck


El 22 Apr 2008 a las 10:30, Mark Halling-Brown escribió:

 Dear jmol_developers
 
 Just a quick question.
 I am developing a website with embedded jmol applets.
 I am loading the jmol applet with an ajax call using the code below (N/B
 this is all working fine)
 
 Javascript
 jmolSetDocument(0);
 jmolInitialize(jmol)
 jmolSetAppletColor(#FF);
 document.getElementById(datadiv).innerHTML = jmolApplet(500, jmoltext,
 'jmolApplet0');
 
 ###HTML##
 div id='datadiv'/div
 
 I would like to colour certain residues on a onmouseover event like this:
 onmouseover=this.style.backgroundColor='#66FF00'; jmolScript('select
 resno = 150; color green;');
 
 However this reports the error: could not find applet jmolApplet0.
 I assume this is because it is inside a div.
 Has anyone got ideas how I tell jmolScript where to look??
 
 Cheers
 Mark
 
 
 
 -- 
 ---
 Mark Halling-Brown  | Tel: +44-20-7631-6839
 Research Associate  |
 Room 359| Fax: +44-20-7631-6803
 School of Crystallography   |
 Birkbeck College| Email:
 Malet Street| [EMAIL PROTECTED]
 London WC1E 7HX | [EMAIL PROTECTED]
 UK  |
   http://people.cryst.bbk.ac.uk/~ghall04
 ---
 
 
 
 -
 This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
 Don't miss this year's exciting event. There's still time to save $100. 
 Use priority code J8TL2D2. 
 http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
 ___
 Jmol-developers mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jmol-developers



-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Jmol error in Firefox/Windows only

2008-04-21 Thread Angel Herraez
 Hi Frieda, I'm not sure what the IP address of that website is, does 
 anyone know how to get an IP address from a domain name? 

Maybe:
http://www.dnswatch.info/



-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Hub and Non-Hub

2008-04-18 Thread Angel Herraez
Hi lijo

Could you please explain waht do you mean by hub and hub protein?
Best if you provide an example file



-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


  1   2   3   4   5   6   >