> From: Byron DeLaBarre [mailto:byron@...]
> Subject: [PyMOL] color association with state?
> Do any pymolers out there know how to associate the color of=20
> a single object
> with its state?
Sorry, this can't be done with the current versions -- colors are either =
atomic or whole-object properties (with a couple of minor exceptions). =
The only way around this right now is to distribute the states you want =
to show over a set of objects with different colors:
> I have a multi-state map that I want to color as it moves through the
> different states in a movie. I want the colors to be associated with
> specific states. I only know how to color the entire=20
> collection of states a
> single color. (something like: color =3D red, object)
> Alternatively, how could I associate a number of text objects=20
> (you can do
> those in pymol, right?) with individual states within the=20
> collection of
Text objects are brand new, and can only be built right now using =
compiled graphics objects (CGOs).
CGOs are always associated with specific states, so adding a label which =
changes during the course of a movie would be straightforward, except =
that text objects are completely undocumented. Here is a start:
# REQUIRES PyMOL 0.80
# save as cgo_3Dtext01.py
from pymol import cmd
from pymol.cgo import *
from pymol.vfont import plain
cgo =3D 
axes =3D [[2.0,0.0,0.0],[0.0,2.0,0.0],[0.0,0.0,2.0]]
pos =3D [0.0,0.0,0.0]
pos =3D [0.0,-3.0,0.0]
Warren L. DeLano, Ph.D.
> From: Malcolm E Davis [mailto:malcolm.davis@...]
> A follow-up newbie question: Is it possible to map colors=20
> onto a surface on a per vertex basis?
Not yet, but that functionality is planned for sometime this year in =
order to enable painting of surfaces in a non-atomic fashion. For now, =
you'll have to make do with atom-based coloring or use something like =
From: Malcolm E Davis <malcolm.davis@bm...> - 2002-04-18 14:31:50
"DeLano, Warren" wrote:
> Sorry, this can't be done with the current versions -- colors are either atomic or whole-object properties (with a couple of minor exceptions).
A follow-up newbie question: Is it possible to map colors onto a surface on a per vertex basis?