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_defaultdropscript for a more complex example.

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


On Tue, Aug 20, 2013 at 5:35 AM, Andrei Ionut Apopei <andrei_ionut1987@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?


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!
Jmol-developers mailing list

Robert M. Hanson
Larson-Anderson Professor of Chemistry
St. Olaf College
Northfield, MN

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