Re: [Jmol-users] Color maps for bonds

2017-01-19 Thread Angel Herráez
Hi Max Have you explored the "connect" command? >From your last description, I think that might do what you want. It's easy to select atom pairs by distance, and then you could "reconnect" them and apply color and thickness of bond https://chemapps.stolaf.edu/jmol/docs/#connect · Dr. Angel

Re: [Jmol-users] Color maps for bonds

2017-01-19 Thread Rolf Huehne
Am 19.01.17 um 05:26 schrieb Max Pinheiro Jr: > Hi Bob, > > The problem that still persist is how to use the values bond lengths to > assign the colors for each bond. I included a new variable to get the > bond length inside the for loop: y=x.bonds.length. However, I think the > variable colors[ ]

Re: [Jmol-users] Color maps for bonds

2017-01-19 Thread Robert Hanson
Yes, Max, there is a very simple way to do this. If you have a color scheme in mind, the color() function is what you want: *x = color(schemeName, min, max, value)* for example: $ x = color("rgb",0,2,1.5) $ print x {0.0 255.0 255.0}​ bmin = {*}.bonds.length.min bmax = {*}.bonds.length.max