VMD-L Mailing List
From: John Stone (johns_at_ks.uiuc.edu)
Date: Mon Oct 03 2016 - 15:32:26 CDT
- Next message: John Stone: "Re: Adding residues to dowser"
- Previous message: John Stone: "Re: Save work in the middle of chirality correction"
- In reply to: Vermaas, Joshua: "Re: Colouring atoms individually"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
It is also potentially worth mentioning that the color scales in
VMD can be reprogrammed with whatever colors one wants, so that
they could be used for coloring by index in a productive way
if one really wants to.
Cheers,
John Stone
vmd_at_ks.uiuc.edu
On Fri, Sep 30, 2016 at 02:53:41PM +0000, Vermaas, Joshua wrote:
> Hi Thomas,
>
> Here is what I would do: Make one selection per color, and then use modulo arithmetic to try and get the atom colors spaced apart somewhat. If I wanted N distinct colors, I'd have N selections, each assigned to its own color using the atomselection interface. The text for each selection would be:
>
> "index % N == 0"
> "index % N == 1"
> "index % N == 2"
> ..
> "index % N == N-1"
>
> This can of course also be scripted, but that's an exercise I'm leaving to you. :)
>
> -Josh
>
> On 09/29/2016 04:23 PM, Albers, Thomas wrote:
>
> Hello!
>
>
> I'm wondering if there is any straightforward way to set the colour of atoms individually using the solid colours. Right now the different atoms are assigned different segnames, depending on what their colour should be, and the colour is assigned accordingly. This works nicely, but the segname attribute can't be used for anything else.
>
>
> Using the colour scale would restrict the choice of colours too much. Is there any other method?
>
>
> Thomas
>
>
-- NIH Center for Macromolecular Modeling and Bioinformatics Beckman Institute for Advanced Science and Technology University of Illinois, 405 N. Mathews Ave, Urbana, IL 61801 http://www.ks.uiuc.edu/~johns/ Phone: 217-244-3349 http://www.ks.uiuc.edu/Research/vmd/
- Next message: John Stone: "Re: Adding residues to dowser"
- Previous message: John Stone: "Re: Save work in the middle of chirality correction"
- In reply to: Vermaas, Joshua: "Re: Colouring atoms individually"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]