oh, it's MUCH easier than that. JR, I suggest thinking at the scripting
level of abstraction. What you want is a transferable moveto command.
Just
Hashtable info = (Hashtable) viewers[n].getProperty("object",
"orientationInfo", null);
String movetoCommand = (String) info.get("moveTo") + "#--";
// this last addition tells Jmol not to include this in the command history
movetoCommand = movetoCommand.substring(0,7)+moveToCommand.substring(9);
//sorry, it's set up for a one-second default change; this removes "1."
so that it is instantaneous
for (int i = 0; i < nViewers; i++)
if(i != n)
viewers[i].script(movetoCommand);
JR, you would be interested in the full set of details on auxiliaryInfo.
See the files in
http://www.stolaf.edu/academics/chemapps/jmol/docs/misc
There's a file there for each auxiliary info outlining its structure.
Any of those can be gotten using Object getProperty("object", "fooInfo",
null). They are all Hashtables.
Bob
JR Schmidt wrote:
>I would like to be able to synchronize the perspective's between
>several instances of JMolViewer. I see that the current perspective
>can be accessed through the JMolViewer.getUnscaledTransformMatrix()
>method; however, there is no equivalent set method which would allow
>one to synchronize the methods. Would implementing such a call be as
>easy as writing simple routine in the TransformManager, and then
>adding an additional wrapper function in the JMolViewer?
>
>Would this be generally useful? Is there an alternative method using
>the existing API, or through scripting?
>
> JR Schmidt
>
>
>-------------------------------------------------------------------------
>Using Tomcat but need to do more? Need to support web services, security?
>Get stuff done quickly with pre-integrated technology to make your job easier
>Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>_______________________________________________
>Jmol-developers mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/jmol-developers
>
>
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers