From: Ajasja Ljubetič (ajasja.ljubetic_at_gmail.com)
Date: Wed Jun 02 2010 - 11:53:00 CDT

Have you looked at
http://www.ks.uiuc.edu/Research/vmd/mailing_list/vmd-l/14985.html
<http://www.ks.uiuc.edu/Research/vmd/mailing_list/vmd-l/14985.html>and the
"mol repname"
"mol repindex"
commands?
But I agree that it would be nice if one could name (with a label)
selections in the graphical representations window.

Best regards,
Ajasja

On Tue, Jun 1, 2010 at 18:23, Bob Johnson <bobjohnson1981_at_gmail.com> wrote:

> Is there a way to label or name specific representations and refer to
> them from a script? As far as I can tell each representation has an ID
> given by the order in which it was created. This makes it awkward to
> modify representations if the number of representations changes. For
> example, if you have 3 representations with IDs 0, 1, 2 and you delete
> the very first one, the IDs will be relabeled to 0 and 1. If you
> wanted to deleted all the representations but keep the 2nd one say,
> you would not be able to use the command:
> mol delrep 0 top
> mol delrep 2 top
>
> Is there any advice on how to work with these changing representation
> IDs? Or is there some way that static labels can be given to them?
> Thanks,
> Bob
>
> --
> Bob Johnson, PhD
> Institute for Computational Molecular Science
> Temple University
> 1900 North 12th Street
> Philadelphia, PA 19122
> http://astro.temple.edu/~rjohnson
>