Oh, yes, sure. If you want to use the file dialog, just change the setting
of defaultDropScript to your liking. Something like:

set defaultDropScript 'load "%FILE"; wireframe -0.2; vibration on

see http://chemapps.stolaf.edu/jmol/docs/?ver=13.2#set_defaultdropscriptfor
a more complex example.

If you are using the JmolViewer interface, just add whatever you want to
the load script and use JmolViewer.script()

Bob


On Tue, Aug 20, 2013 at 5:35 AM, Andrei Ionut Apopei <
andrei_ionut1...@yahoo.com> wrote:

>
>  Dear Jmol developers,
>
> Currently I'm trying to integrate a Jmol functionality into a Java
> application. So far I founded a good starting point at this link:
> http://old.nabble.com/Integrating-Jmol-into-an-application-td31583044.html
> .
>
> My OS: Windows 7
> Jmol version: 13.2.3
>
> It works great, but I wanna know if it is possible to put some scripts
> (specific zoom, atom selection, vibration on, and so on) to load at the
> beginning (when the file load e.g. Caffeine.xyz). How can I achieve this?
>
> Thanks,
> Andrei
>
>
> ------------------------------------------------------------------------------
> Introducing Performance Central, a new site from SourceForge and
> AppDynamics. Performance Central is your source for news, insights,
> analysis and resources for efficient Application Performance Management.
> Visit us today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> _______________________________________________
> Jmol-developers mailing list
> Jmol-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-developers
>
>


-- 
Robert M. Hanson
Larson-Anderson 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
------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Jmol-developers mailing list
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to