Greetings all, I have following JMol function.How to embed this into my JMol applet?
During the JMol initialization,I want to save the returned residues in a varible. something like: cdr3=selectCDR("a",97,115) Later, when user check/uncheck a JMol checkbox I want to change the color of these residues. somthing like : when checked > color @{cdr3} red , unchecked > color @{cdr3} white ----------------------------------- function selectCDR(chainID, r1, r2) script inline @{"select *.ca and :" + chainID} select {selected} (_x.resno - within("chain", _x)[1].resno >= r1 - 1 && _x.resno - within("chain",_x)[1].resno <= r2 - 1) select within(group,selected) return {selected} end function Best Regards, Umanga -- アシカ ウマンガ ウマギリヤ ㈱国際バイオインフォマティクス研究所(BiGG) 〒140-0001 東京都品川区北品川3-6-9 アンドウビル8F TEL:03-6679-8763 FAX:03-6679-8764 ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users