Hi all,
I'm trying to get secundary structure rendering working in Bioclipse's
JmolView...
This is the code I use to run the script String:
BufferedReader reader = new BufferedReader(new StringReader(script));
try {
String line = reader.readLine();
while (line != null) {
System.out.println("To jmol: " + line);
BioclipseConsole.writeToConsole(
"Running Jmol script: " + jmolRes.getName());
String feedback = viewer.script(line);
BioclipseConsole.writeToConsole("Feedback: " + feedback);
line = reader.readLine();
}
} catch (Exception io) {
// should not happen
}
I use a BufferedReader to parse the script line by line... with in mind the
option to say on which line a script error is.
The 'script' string reaches Jmol and most works. The Jmol view uses Jmol IO so
it should have read the secundary structure info from the PDB file passed
from the byte[] from the file.
This is the script that I run:
select *
spacefill OFF
wireframe ON
cartoon ON
rocket ON
ribbons ON
The first three commands work, but the last not :(
I've been trying to debug this, but the script() does not return any
feedback... null in all cases, even if I make the script invalid. Also tried
evalScript()... all nulls...
What am I doing wrong?
Egon
--
[EMAIL PROTECTED]
PhD student on Molecular Representation in Chemometrics
Radboud University Nijmegen
Blog: http://chem-bla-ics.blogspot.com/
http://www.cac.science.ru.nl/people/egonw/
GPG: 1024D/D6336BA6
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users