VMD-L Mailing List
From: John Stone (johns_at_ks.uiuc.edu)
Date: Fri Feb 13 2004 - 17:43:27 CST
- Next message: John Stone: "Re: removing surrounding water molecules"
- Previous message: Kim, Kwiseon: "RE: removing surrounding water molecules"
- In reply to: Manuel Melle-Franco: "Problems with graphics.color function under VMD's python interpreter"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Manuel,
Somehow I seem to have missed your message before, the short answer is
that at present we don't allow arbitrary colors on geometry via the
Tcl or Python interfaces. This is something I'd like to change eventually,
but that's the current state of things.
Thanks,
John Stone
vmd_at_ks.uiuc.edu
On Tue, Jan 20, 2004 at 05:20:55PM +0100, Manuel Melle-Franco wrote:
> Hi all,
>
> I am trying to write a python script that will color some primitives as a
> function of an user input values using RBG tuples with no much luck.
>
> Setting the color with string (color name) or an integer (color index) works
> fine:
>
> >>> from graphics import *
> >>> color(0, 'red')
> 1
>
> but when I try with RBG tuples:
>
> >>> from graphics import *
> >>> color(0, (0.0, 0.0, 0.0))
> Traceback (most recent call last):
> File "VMD", line 1, in ?
> ValueError: Invalid color
>
> am I doing something wrong?
>
> thanks,
>
> Manu
>
>
> ________________________________________________________
> I would believe only in a god who could dance. - Nietzsche -
> ________________________________________________________
>
> Manuel Melle-Franco, Ph.D.
> Dip. di Chimica "G. Ciamician"
> Universita Di Bologna
> via Selmi 2, I-40126
> Bologna, Italy
> ---------------------------------------------------------
> Fax : +39-051-2099456
> Phone : +39-051-2099596
> ---------------------------------------------------------
>
-- NIH Resource for Macromolecular Modeling and Bioinformatics Beckman Institute for Advanced Science and Technology University of Illinois, 405 N. Mathews Ave, Urbana, IL 61801 Email: johns_at_ks.uiuc.edu Phone: 217-244-3349 WWW: http://www.ks.uiuc.edu/~johns/ Fax: 217-244-6078
- Next message: John Stone: "Re: removing surrounding water molecules"
- Previous message: Kim, Kwiseon: "RE: removing surrounding water molecules"
- In reply to: Manuel Melle-Franco: "Problems with graphics.color function under VMD's python interpreter"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]