Any method that you see in org.jmol.api.JmolViewer.java should be accessible in any integrated context. In this case, Viewer.getStateInfo() returns the state string that would otherwise be sent to the file.
Ola Spjuth wrote: >Hi, > >When running Jmol as an integrated component (in our case Bioclipse), >is it possible to write state to a stream instead of a file? Are >there separate API calls for all scripting commands? > >If this is not the case I'd like to make a general feature request to >use Stream instead of File on all occasions to simplify integration >of Jmol in other applications. > >Cheers, > > .../Ola > >On May 31, 2007, at 19:35 , Bob Hanson wrote: > > > >>Thanks, Angel. This is fixed for 11.1.45. >> >>Nico, can you see if there is a simple way of having the export file >>chooser retain the last-saved file type selected and not reset to JPG >>each time? Thanks. >> >>Bob >> >> >> >> >>Angel Herraez wrote: >> >> >> >>>(11.1.41) >>> >>>I haven't tried extensively, but it seems that there is a problem >>>saving the state to a script file: >>> >>>I prepared a model in the app, then used the top menu File > Export > >>>Image or script > SPT >>>The file is created, but empty. >>> >>>If I understand correctly, that's supposed to write the state to a >>>file, right? If I do "show state" at the console, it works OK; shows >>>the state, which I can copy and paste into a file. >>> >>>Please, check if this is a bug; if needed, I can do more thorough >>>testing how when it fails. >>> >>> >>>--------------------------------------------------------------------- >>>---- >>>This SF.net email is sponsored by DB2 Express >>>Download DB2 Express C - the FREE version of DB2 express and take >>>control of your XML. No limits. Just data. Click to get it now. >>>http://sourceforge.net/powerbar/db2/ >>>_______________________________________________ >>>Jmol-users mailing list >>>[email protected] >>>https://lists.sourceforge.net/lists/listinfo/jmol-users >>> >>> >>> >>> >>-- >>Robert M. Hanson >>Professor of Chemistry >>St. Olaf College >>Northfield, MN >>http://www.stolaf.edu/people/hansonr >> >> >>If nature does not answer first what we want, >>it is better to take what answer we get. >> >>-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900 >> >> >> >>---------------------------------------------------------------------- >>--- >>This SF.net email is sponsored by DB2 Express >>Download DB2 Express C - the FREE version of DB2 express and take >>control of your XML. No limits. Just data. Click to get it now. >>http://sourceforge.net/powerbar/db2/ >>_______________________________________________ >>Jmol-users mailing list >>[email protected] >>https://lists.sourceforge.net/lists/listinfo/jmol-users >> >> > > >------------------------------------------------------------------------- >This SF.net email is sponsored by DB2 Express >Download DB2 Express C - the FREE version of DB2 express and take >control of your XML. No limits. Just data. Click to get it now. >http://sourceforge.net/powerbar/db2/ >_______________________________________________ >Jmol-users mailing list >[email protected] >https://lists.sourceforge.net/lists/listinfo/jmol-users > > -- Robert M. Hanson Professor of Chemistry St. Olaf College Northfield, MN http://www.stolaf.edu/people/hansonr If nature does not answer first what we want, it is better to take what answer we get. -- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900 ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Jmol-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-users

