From: John Stone (johns_at_ks.uiuc.edu)
Date: Thu Sep 05 2002 - 13:53:27 CDT

Hi Vlad,
  Yes, there's a way to get a list of reps, this is the method used
in the VMD saved state script:

proc save_reps {} {
    global representations
    foreach mol [molinfo list] {
        set representations($mol) ""
        for {set i 0} {$i < [molinfo $mol get numreps]} {incr i} {
            lappend representations($mol) \
                [molinfo $mol get "{rep $i} {selection $i} {color $i} {material $i}"]
        }
    }
}

Let us know if you need more help.

Thanks for using VMD,
  John stone
  vmd_at_ks.uiuc.edu

On Wed, Sep 04, 2002 at 02:10:40PM +0200, Vlad Cojocaru wrote:
> Dear vmd users,
> I know that one can assign a variable to the molecule ids like this:
> set var [molinfo list]
> My question is how could I assign a variable to the represantations
> that I want to create. Is there a command which gives the list with the
> representation numbers similar to molinfo list????
> Best wishes,
> vlad
>
> --
> Vlad Cojocaru
> Max Planck Institut for Biophysical Chemistry
> Deparment: 060
> Am Fassberg 11, 37077 Goettingen, Germany
> tel: ++49-551-201.1389
> e-mail: Vlad.Cojocaru_at_mpi-bpc.mpg.de
>
>

-- 
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