So I have tried several things but none of them work...
jmolScript('select 2:A.CA <http://a.ca/> and 1.1; catom={selected};
var label = jmolEvaluate('catom.label');
does not work
jmolScript('select 2:A.CA <http://a.ca/> and 1.1; catom={selected};
var label = jmolEvaluate('print catom.label');
does not work
var label = jmolScript(\'print {2:A.CA/1.1}.label\');
does not work
var label = jmolScript(\'{2:A.CA/1.1}.label\');
does not work
var label = jmolEvaluate(\'print {2:A.CA/1.1}.label\');
does not work
var label = jmolEvaluate(\'{2:A.CA/1.1}.label\');
does not work
But on the console "print {2:A.CA/1.1}.label" works ok...
El 21 de septiembre de 2011 12:55, Angel Herráez <[email protected]>escribió:
> > This is strange, now I'm trying in the console "select 2:A.CA and
> > 1.1; catom={selected}; print catom.label" and it works...
>
> Not strange; print works, show does not (for this issue)
>
> > But still this does not work...
> > var label = jmolEvaluate('select 2:A.CA and 1.1; catom={selected};
> > print catom.label');
>
> I think that you are misusing jmolEvaluate; probably it is not
> designed for a sequence of commands.
>
> I'm not sure, but maybe
>
> jmolScript('select 2:A.CA and 1.1; catom={selected};
>
> var label = jmolEvaluate('catom.label');
>
> (see http://jmol.sourceforge.net/jslibrary/#jmolEvaluate )
>
>
>
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure contains a
> definitive record of customers, application performance, security
> threats, fraudulent activity and more. Splunk takes this data and makes
> sense of it. Business sense. IT sense. Common sense.
> http://p.sf.net/sfu/splunk-d2dcopy1
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users