>> Does the color purple get applied to all carbons in all frames?
>
> Yes, that would make sense to me... During an animation I would prefer
> to have  the styles the same... because the atoms do not really change,
> just there  location... (and possible a few other attributes like
> charge...)
>
> This comes back to something we discussed some time ago.... to store
> animations not as discrete frames but as one frame, with a set of
> dislocations...
Yes, I think this is a good idea.
It would also make interpolations much easier and much more efficient.


> But for now, I think it is best to apply coloring to all frames... a
> possible  problem would be atom numbering... we need to rely on the fact
> that atom  either have IDs attached to all frames, or that the 'order'
> of the atoms in  the container stays the same... All carbons purple, is
> not really a problem  of course...
My initial reaction is that the type and order need to be the same.


>> Is there a way to select a specific frame so that you can apply
>> scripting commands to a specific frame?
>define_chime(window,"ethach","240","300","AnimFrameCallback=JSAnimcontrol","ethane.xyz","wireframe
>  40;spacefill 120;select hydrogen;spacefill 90;zoom 190;select
> *;background  [235,255,235];set specular on;anim fps 2;anim mode
> loop;anim frame next")
The question I was trying to ask is: Can you restrict scripting commands
to a specific frame so that you can change visual representation
characteristics for a single frame?


> Taken from Hens' WetCHe website, ethane.html:
> http://www.cmbi.kun.nl/wetche/organic/nalkanesconf/ethane/index.html
> That does not answer your question, but shows Chime's anim commands...
>
> Interesting bits are in a separate javascript file:
> http://www.cmbi.kun.nl/wetche/moiscript.js
>
> function write_chime(what,pin,height,width,otherprop)
> {
>       t  = '<embed src="/wetche/1atom.pdb" frank="no"
> pluginspage="http://www.mdlchime.com"; '
>       t += 'name="' + top.moi[pin]["gentlename"] + '" '
>       t += 'height="' + height + '" width="' + width + '" '
>       t += 'debugscript=on MessageCallback="' + top.moi["codeloc"] +
> '.ChimeMessage" PickCallback="' + top.moi["codeloc"] + '.ChimePick" '
>       if (typeof(otherprop) != 'undefined' && otherprop != '') t += otherprop
> t += '>'
>       if (top.moi["works"] > 1)
>       {
>               t += '<IFRAME NAME="ifr_' + pin + '" ALIGN=TOP WIDTH=5 HEIGHT=0
> VSPACE=0
> HSPACE=0 SCROLLING="no" FRAMEBORDER="no"></IFRAME>'
>       }
>       what.document.write(t)
> }
>
> Hens, the MessageCallBack and PickCallback values give javascript
> methods called when something is selected in Chime?
> This seems to be a nice overview of what these attributes do:
> http://www.weizmann.ac.il/~cffelder/weiz/embedtags.html
> Which call backs are you using?
I have been looking at the Java->JavaScript callback mechanism through
LiveConnect. There seems to be a lot of ambiguity over whether or not this
works well with IE. I will have to do some experimentation.

>
>> > -Chime returns the frame number during an animation, for use in
>> javascripts (AnimFrameCallback). Can JMol do something similar?
>> Examples?
>>
>> I am sure there is a way we can do something.
>>
>> But at this point I need basic assistance on what type of
>> functionality is needed for multi-frame animations.
>
> Like Jmol itself, Hens' webpage has two views on an animation, one is
> the  animation of the atoms, and the second is the energy vs. time
> plot... Picking  a point in the energy/time plot should show the
> selected frame, and the other  way around, selecting a certain frame in
> the Jmol applet should 'highlight'  the currect point in the energy/time
> plot... Right?
>
> There needs to be a mechanism which can synchronize the two... It seems
> that  the callBack mechanism in Chime takes care of this...
Agreed.

My biggest concern is the robustness of the callback mechanism. If we have
problems with it then the fallback mechanism is for JavaScript to poll the
status of the applet to find out where it is.

Miguel

>
> Egon
>
> --
> PhD Molecular Representation in Chemometrics
> Dept. Analytical Chemistry
> http://www-cac.sci.kun.nl/people/egonw.html


--------------------------------------------------
Miguel Howard                   [EMAIL PROTECTED]
c/Pe�a Primera 11-13 esc dcha 6B
37002 Salamanca
Espa�a Spain
--------------------------------------------------
telefono casa 923 27 10 82 movil 650 52 54 58
--------------------------------------------------
To call from the US dial    9:00 am Pacific US   =
home 011 34 923 27 10 82   12:00 noon Eastern US =
cell 011 34 650 52 54 58    6:00 pm Spain
--------------------------------------------------




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Jmol-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to