VMD-L Mailing List
From: Diego Gomes (diego.enry_at_gmail.com)
Date: Thu Mar 23 2023 - 09:11:43 CDT
- Next message: Alexandre Suman de Araújo: "Re: Show tcl console selections in VMD graphical display"
- Previous message: Alexandre Suman de Araújo: "Show tcl console selections in VMD graphical display"
- In reply to: Alexandre Suman de Araújo: "Show tcl console selections in VMD graphical display"
- Next in thread: Alexandre Suman de Araújo: "Re: Show tcl console selections in VMD graphical display"
- Reply: Alexandre Suman de Araújo: "Re: Show tcl console selections in VMD graphical display"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Sure, all you need to do is play around with the selections using modselect
Here is one way to do it:
# Load a new PDB
mol new 1ubq
# Step 1: Modify the selection
mol modselect 0 0 {same residue as within 5 of residue 41}
# Step 2: Modify the Drawing Method
mol modstyle 0 0 Licorice 0.300000 12.000000 12.000000
# Optional: Change color.
mol modcolor 0 0 ColorID 4
You may also consider adding a new representation instead
Here is a way to do it, but notice you need to keep track of the IDs for
molecule and representation.
# Step 1: Add a new representation to molecule ID "0"
mol addrep 0
# Step 2: Modify the selection of representation "1" of molecule "0"
mol modselect 1 0 {same residue as within 5 of residue 41}
# Step 3: Modify the Drawing method of representation "1" of molecule "0"
mol modstyle 1 0 CPK 1.000000 0.300000 12.000000 12.000000
On Thu, Mar 23, 2023 at 4:46 AM Alexandre Suman de Araújo <
alexandre.suman_at_unesp.br> wrote:
> Hi all.
>
> Can I set a selection in TkConsole and display it on the graphic window?
>
> Regards
>
> Alexandre
>
-- Diego Enry B. Gomes, PhD Department of Physics Leach Science Center Auburn University dgomes_at_auburn.edu +1 (334) 559-4016
- Next message: Alexandre Suman de Araújo: "Re: Show tcl console selections in VMD graphical display"
- Previous message: Alexandre Suman de Araújo: "Show tcl console selections in VMD graphical display"
- In reply to: Alexandre Suman de Araújo: "Show tcl console selections in VMD graphical display"
- Next in thread: Alexandre Suman de Araújo: "Re: Show tcl console selections in VMD graphical display"
- Reply: Alexandre Suman de Araújo: "Re: Show tcl console selections in VMD graphical display"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]