No need at all for any source changes.
This will be a command-line execution of Jmol.jar

1) create a script that you want to use to rotate the model, display
certain characteristics, etc. I'll refer to this as "myscript.spt"

2) run Jmol -h to see this help:

C:\jmol-dev\workspace\Jmol>jmol -h
usage: Jmol
 -o,--noconsole        no console -- all output to sysout
 -g,--geometry         window width x height, e.g. -g500x500
 -x,--exit             exit after script (implicit with -n)
 -D <property=value>   supported options are given below
 -c,--check            check script syntax only
 -h,--help             give this help page
 -i,--silent           silent startup operation
 -n,--nodisplay        no display (and also exit when done)
 -s,--script           script file to execute
 -w,--write            CLIP or JPG|JPG64|PNG|PPM:filename

For example:

Jmol -ions myscript.spt -w JPEG:myfile.jpg > output.txt

You can add -g400x400 to make a 400x400 JPEG, for example.



On 4/10/07, Beet <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am trying to use Jmol as a development tool kit to view mol files and to
> convert them programmatically to images (gif, jpg).  I looked through the
> sample code and was able to recreate a mol viewer, but I am still not able
> to figure out how to convert a mol file to an image.  I downloaded the jmol
> package as well, but I cannot find the javadocs anywhere.  Can someone give
> me a hand?
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to