Hi there again!

2 minor oddities I found when opening a simple script with jmol commands in
11.4.1:

..1.. when writing to povray in a script, it is bothered by relative paths
in the output filename:

In other contexts, relative paths work, for example, this works:
$ write JPG "./out.jpg"
type=JPG; file=jpg./out.jpg; width=774; height=751; quality=75
Script completed

Whereas this doesn't:
$ write povray "./out.pov"
type=POV; file=povray./out.pov; length=0
Script completed

With the java console outputting to me the following:
Cannot export POV
IO Exception: povray./out.pov (No such file or directory)

Seems like some string handling being messed up?

..2.. It is not possible to comment out multiple commands on a single line
in one go, for example the line:
 #if (1==1); frame next; end if;
will give a script compiler error:

script compiler ERROR: invalid context for end
----line 20 command 15 ofjmol.script:
         end if; <<<<
----line 1 command 1 of file null:
         script "jmol.script" <<

It seems commenting out is only valid until the next semicolon, not until
"end of line".
This might be either a bug or a feature, in any case I didn't expect it.

-- 
Greetings, Pim
http://www.molmod.com
-------------------------------------------------------------------------
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

Reply via email to