R. Kent Wenger wrote:

>    connect (atomno=442) (atomno=410); connect (atomno=586) (atomno=266);
>    color bond green;
> 
> I end up with all of the bonds colored green, not just the ones I added.
> If I make the whole thing one command, I get an error.


That's right. You need a select command to apply colors, connect 
won't do that.

connect (atomno=442) (atomno=410); connect (atomno=586) (atomno=266);
select atomno=442, atomno=410, atomno=586, atomno=266; color bond 
green;

# or:

select atomno=442, atomno=410; connect (selected); color bond green;
select atomno=586, atomno=266; connect (selected); color bond green;



> The documentation makes it look to me like you should be able to have a 
> color option as part of the connect command, but I haven't been able to 
> come up with any syntax that makes that work.

No, I don't think there's such a choice. Connect bonds are normal 
bonds, once defined, and they take the connected atoms' colors. Only 
the bond type is an option.


I still recommend that you use the draw method.
·
 Dr. Angel Herraez
 Dep. Bioquimica y Biologia Molecular, Universidad de Alcala
 E-28871 Alcala de Henares  (Madrid), Spain


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to