Steven, yes, we need another book on this as well.

Look in

http://chemapps.stolaf.edu/jmol/docs/misc/

for the shapeInfo.txt file. It should lay out what the format is of 
those objects. Also, with the latest Jmol you can explore these things 
by using from the console:

print getProperty("shapeInfo")

But that won't get you what you want, I think. Closer might be

print getProperty("polymerInfo")

I don't think we are exposing that stuff, though. You might be able to 
decipher it from

 print getProperty("stateInfo","modelState")




Steven R. Spilatro wrote:

>Hi everyone,
>With the applet is there a getpropertyasarray function to obtain the 
>size of the trace, ribbons, dots, etc?
>
>I have experimented with 'shapeInfo' but without any success.  The 
>best I can do is get "[object] [object]" or "undefined" returned to:
>         x=jmolGetPropertyAsArray("shapeInfo")
>         alert (x[0])     [...or other variations on this theme]
>I'm sure I'm doing something wrong.  Any help would be appreciated.
>
>This is also undoubtedly the case in my efforts to use the 
>getProperty function; I'm sure I must just not be constructing the 
>code correctly. Could someone please send a code snippet (or URL) 
>that shows exactly how this is placed into the web page code.
>
>Also, I have experimented with the "set PickDrawing" which seems to 
>work fine when the vertices are selected, but not the line 
>itself.  Is it possible that a callback can occur when something 
>other than a vertex is selected?
>Steve
>
>  
>
Right now it's just the end points. If you want to pick centers, then 
you just create points there. They can be invisible:

draw line1 {atomno=3} {atomno=5}
draw line1center $line1 translucent 1

This works because "$line1" is interpreted here as the average of its 
points -- it's center.

Now you should be able to pick the center of that line.


>
>  
>
>>******************************************
>>    
>>
>
>Dr. Steven R. Spilatro
>Chair, Department of Biology
>Marietta College
>
>
>
>-------------------------------------------------------------------------
>This SF.net email is sponsored by: Microsoft
>Defy all challenges. Microsoft(R) Visual Studio 2005.
>http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>_______________________________________________
>Jmol-users mailing list
>Jmol-users@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/jmol-users
>  
>


-- 
Robert M. Hanson
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



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to