Bob,

This sets it up:

        if (scpt == "invertA") {
                mkResetMin();
                if (fileType != "mol") { echo("This feature is only available 
for molfiles"); return null; }
                echo("Click on an atom to invert stereochemistry.”);
                // See callback
                undoTemp = Jmol.getPropertyAsString(jmolApplet0, 
"extractModel”);
                // My function for running JmolScript.
                jms("select *;set picking INVERTSTEREO");
                return null;
        }

There is a pick callback that does something unrelated to the actual inversion:

     function PickCallback(x, y, z) {

          ….
          // This is just related to how I handle model building undo
          if (y.indexOf("inverted") > -1 ){ stashUndo(undoTemp); undoTemp = ""; 
}
          …

     }

Otis
--
Otis Rothenberger
o...@chemagic.org
http://chemagic.org

> On Mar 17, 2016, at 8:45 AM, Robert Hanson <hans...@stolaf.edu> wrote:
> 
> could be...I was working on that. Can you give me a script that is failing?
> ​
> ------------------------------------------------------------------------------
> Transform Data into Opportunity.
> Accelerate data analysis in your applications with
> Intel Data Analytics Acceleration Library.
> Click to learn more.
> http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140_______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users

------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to