set bond to wire and specific width

Sorry to bug again, I'd like to change the aspect of the bonds I selected using a python code. I'd like a wide wire representation. I am not sure how to handle the Wire attribute. With the drawMode I can switch the representation from ball and stick to wire. However, I do not manage to change the width. I thought that radius would work out but it sounds that is does not work for this mode. Any help? Cheers JD for b in chimera.selection.currentBonds(): b.drawMode=0 b.radius=1 Dr. Jean-Didier Maréchal Lecturer The Computational Biotechnological Chemistry Team Unitat de Química Física Departament de Química Universitat Autònoma de Barcelona Edifici C.n. 08193 Cerdanyola (Barcelona) Tel: +34.935814936 e-mail: JeanDidier.Marechal@uab.es www: http://asklipio.qf.uab.es ----- Missatge original ----- De: Jean Didier Pie Marechal <JeanDidier.Marechal@uab.cat> Data: Dijous, Octubre 11, 2012 2:19 pm Assumpte: Re: attribute for selection?
Sorry,
just to clarify my previous request:
this is a script that does what I want though a selection attribute would be faster I think.
for a in chimera.openModels.list()[0].atoms: if a in chimera.selection.currentAtoms(): print "this atom of the molecule is selected" #to say somethingelse: print "this one isn't"
cheers
Dr. Jean-Didier Maréchal Lecturer The Computational Biotechnological Chemistry Team Unitat de Química Física Departament de Química Universitat Autònoma de Barcelona Edifici C.n. 08193 Cerdanyola (Barcelona) Tel: +34.935814936 e-mail: JeanDidier.Marechal@uab.es www: http://asklipio.qf.uab.es
----- Missatge original ----- De: Jean Didier Pie Marechal <JeanDidier.Marechal@uab.cat> Data: Dijous, Octubre 11, 2012 12:39 pm Assumpte: attribute for selection?
HI,
I want to add attributes to atoms that are selected and those that aren't. I thought that atoms had a selection attribute already defined in chimera (something like a boolean) but I don't find it. I am wrong with that?
best, JD
Dr. Jean-Didier Maréchal Lecturer The Computational Biotechnological Chemistry Team Unitat de Química Física Departament de Química Universitat Autònoma de Barcelona Edifici C.n. 08193 Cerdanyola (Barcelona) Tel: +34.935814936 e-mail: JeanDidier.Marechal@uab.es www: http://asklipio.qf.uab.es

Unfortunately, Chimera cannot do what you want. The "linewidth" attribute belongs to the model, which means all bonds in the same model must share the same width when drawn in wire mode. The "radius" attribute is only used for drawing in stick mode. Sorry. Conrad On 10/11/12 5:27 AM, Jean Didier Pie Marechal wrote:
Sorry to bug again,
I'd like to change the aspect of the bonds I selected using a python code. I'd like a wide wire representation. I am not sure how to handle the Wire attribute. With the drawMode I can switch the representation from ball and stick to wire. However, I do not manage to change the width. I thought that radius would work out but it sounds that is does not work for this mode. Any help?
Cheers JD
for b in chimera.selection.currentBonds(): b.drawMode=0 b.radius=1
Dr. Jean-Didier Maréchal Lecturer The Computational Biotechnological Chemistry Team Unitat de Química Física Departament de Química Universitat Autònoma de Barcelona Edifici C.n. 08193 Cerdanyola (Barcelona) Tel: +34.935814936 e-mail: JeanDidier.Marechal@uab.es www: http://asklipio.qf.uab.es
----- Missatge original ----- De: Jean Didier Pie Marechal <JeanDidier.Marechal@uab.cat> Data: Dijous, Octubre 11, 2012 2:19 pm Assumpte: Re: attribute for selection?
Sorry,
just to clarify my previous request:
this is a script that does what I want though a selection attribute would be faster I think.
for a in chimera.openModels.list()[0].atoms: if a in chimera.selection.currentAtoms(): print "this atom of the molecule is selected" #to say somethingelse: print "this one isn't"
cheers
Dr. Jean-Didier Maréchal Lecturer The Computational Biotechnological Chemistry Team Unitat de Química Física Departament de Química Universitat Autònoma de Barcelona Edifici C.n. 08193 Cerdanyola (Barcelona) Tel: +34.935814936 e-mail: JeanDidier.Marechal@uab.es www: http://asklipio.qf.uab.es
----- Missatge original ----- De: Jean Didier Pie Marechal <JeanDidier.Marechal@uab.cat> Data: Dijous, Octubre 11, 2012 12:39 pm Assumpte: attribute for selection?
HI,
I want to add attributes to atoms that are selected and those that aren't. I thought that atoms had a selection attribute already defined in chimera (something like a boolean) but I don't find it. I am wrong with that?
best, JD
Dr. Jean-Didier Maréchal Lecturer The Computational Biotechnological Chemistry Team Unitat de Química Física Departament de Química Universitat Autònoma de Barcelona Edifici C.n. 08193 Cerdanyola (Barcelona) Tel: +34.935814936 e-mail: JeanDidier.Marechal@uab.es www: http://asklipio.qf.uab.es
_______________________________________________ Chimera-dev mailing list Chimera-dev@cgl.ucsf.edu http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-dev
participants (2)
-
Conrad Huang
-
Jean Didier Pie Marechal