From: Ashar Malik (asharjm_at_gmail.com)
Date: Fri Jun 10 2022 - 02:08:03 CDT

I am not sure how to do it in one go.

Another way would be to get a list of all the atom indices.

set atomIDX [$sel get index]

then iterate over this list using a for loop

foreach i $atomIDX {
          set seli [atomselect top "index $i"]
          $seli set radius 33
          $seli delete
}

The value 33 is where you put your own values - which can be fixed (like in
the above example) or can be pulled from anywhere else.

You can wait for someone else's answer, if you want to do it in one go.
Hope this helps.

Best,
Ashar

On Fri, Jun 10, 2022 at 1:59 PM <michaelmorgan937_at_gmail.com> wrote:

> Dear all,
>
>
>
> Can anyone instruct me how to pass a list from a result?
>
>
>
> For example,
>
> set sel [atomselect top all]
>
> $sel get radius
>
>
>
> will return a list of all atoms’ radius, let’s call it list_A.
>
>
>
> Now if I want to pass this list back (just for practice purpose):
>
> $sel set radius list_A
>
>
>
> How to pass result of “$sel get radius” to a variable list_A and use it in
> “set radius” command?
>
>
>
> Thank you very much.
>
>
>
> Michael M.
>
>
>