Re: [Jmol-users] scripting an atom's color?
Try changing that first parameter to Atominfo[0].color Away from my computer On Oct 17, 2008, at 1:30 PM, Eric Martz [EMAIL PROTECTED] wrote: At 10/16/08, Eran Hodis wrote: In the commandline or in a Jmol script you can do numModels = getProperty(modelInfo,modelCount); if (numModels 1) ... Thank you Eran, that is exactly what I wanted. Now I'd like to know the simplest way to get an atom's color into a Jmol script variable. I got as far as myAtomColor = getProperty(atomInfo, {3:a.n}) but that gives me a long list of atomInfo including the color. How to I get just the color RGB value? Thanks, -Eric --- -- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users
[Jmol-users] scripting an atom's color?
At 10/16/08, Eran Hodis wrote: In the commandline or in a Jmol script you can do numModels = getProperty(modelInfo,modelCount); if (numModels 1) ... Thank you Eran, that is exactly what I wanted. Now I'd like to know the simplest way to get an atom's color into a Jmol script variable. I got as far as myAtomColor = getProperty(atomInfo, {3:a.n}) but that gives me a long list of atomInfo including the color. How to I get just the color RGB value? Thanks, -Eric - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users
Re: [Jmol-users] scripting an atom's color?
Hi Eric You maybe get some use out of this page of mine: http://biomodel.uah.es/Jmol/getProperty/ It's an old Jmol version, but things should be the same or similar The hand-picked atom is marked as selected, so you should be able to get the info obtained in the page by using any selection method you have. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users