We have a nice color widget now, and it could be adapted.... Jonathan, does
the color widget allow you to tie it to any script command?

The basic idea is

1) set a pick callback so you know what residue(s) were clicked. -- or I
guess just use set picking select.
2) in response to a color pick -- say it's "[xFF00FF]" you would construct
the script

var scr = "select within(group, selected);color [xFF00FF]"

and send that to Jmol using

jmolScript(scr)




On Thu, Jun 10, 2010 at 2:59 PM, Jay Vyas <[email protected]> wrote:

> Hi : I want to allow users to color atoms in a protein by selecting the
> residue numbers, and then selecting a color.  Im not sure how to do this in
> dynamically.  For example, I know I could make a
>  "select 1-20 ; color yellow" command.  But I want the user to be able to
> select both the residue numbers, and the color.  Anyone know if there is a
> simple way to add this feature using jmol controls ??
> If not, I think some dynamic javascript could do the trick.
>
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit.  See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>


-- 
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107


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
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to