Hens,

You probably got some intermediate version there. Maybe even while I was updating it. There should be no problem now at any of:

http://www.stolaf.edu/people/hansonr/jmol/test/json/pmesh.htm
http://www.stolaf.edu/people/hansonr/jmol/test/json/draw.htm
http://www.stolaf.edu/people/hansonr/jmol/test/json/spin.htm

all of which are just different in the examples they list.

Notice that you can reference points that are not just atoms.
Right now you can refer to any absolute point [x,y,z] or
to atom expressions (atomno=10, atomno=11) would be the midpoint between these two
or to any previously defined object:

draw line1 150 (atomno=1) (atomno=2);color draw yellow
draw line2 350 [line1] (atomno=3);color draw white

This works perfectly; I expect to expand it some as we discover what we really want. Basically what we are designing here is simple access to internal coordinates. Today I
implemented internal coordinate spinning:

spin [line1] 30

and it actually works! Actually, I can't quite believe it works.

Obviously

rotate [line1] 30
center [line1]

are next. (Honest, Miguel, then I'll quit!)

These are very easy to implement. And I got the frame/animation business sorted out as well, so that
is ready to go.

Or is that what you intended the scale parameter for?

yes, that's it.


Hens

I'm developing some drawing ideas. See

http://www.stolaf.edu/people/hansonr/jmol/test/json/pmesh.htm

The new command is

draw <anyIdentifier> <optional scale> <atom expression or xyz-coordinate> <atom expression or xyz-coordinate> <atom expression or xyz-coordinate> ....

Examples:

draw triangle1 150 (atomno=1) (atomno=14) (atomno=15)
draw line1 120 (atomno=1) (atomno=2)
draw line1 200 (oxygen) (nitrogen)
draw triangle1 400
draw line1 300
draw triangle1;color draw red;
draw line1;color draw blue



Thoughts?

Bob Hanson



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users





-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to