Gonzalo,

Just pick a bond and issue the following setting command to make colored lines:

set_bond line_color, yourColor, sele

You can also use

set_bond stick_color, yourColor, sele

for sticks.

"sele" should be the two bound atoms.

Cheers,

-- Jason


On Tue, Jan 31, 2012 at 1:51 PM, Gonzalo Parra <gonza_pa...@hotmail.com> wrote:
> Hello everyone,
>
> I was trying to make a pymol script. I have to draw different lines in my
> pdb structure with different colors.
>
> So, I find the way to draw a bond between to atoms, for example.
>
> "bond resi 234 and resn GLU and name CA, resi 259 and resn SER and name CA"
>
>
> But it always draw the bond with the same color. And I wasn't able to change
> a bond color without changing every bonds color.
>
>
> How can I color one specific bond color, for example just the bond that
> bonds resi 234 and resn GLU and name CA and resi 259 and resn SER and name
> CA?
>
>
> Thanks in advance
>
> Gonzalo
>
>
> ------------------------------------------------------------------------------
> Keep Your Developer Skills Current with LearnDevNow!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-d2d
> _______________________________________________
> PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
> Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
> Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net



-- 
Jason Vertrees, PhD
PyMOL Product Manager
Schrodinger, LLC

(e) jason.vertr...@schrodinger.com
(o) +1 (603) 374-7120

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Reply via email to