Thanks for the quick answers!<div>that works!</div><div><br></div><div>mathy<br><br><div class="gmail_quote">On Tue, Sep 20, 2011 at 6:24 PM, Elaine Meng <span dir="ltr"><<a href="mailto:meng@cgl.ucsf.edu">meng@cgl.ucsf.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Mathy,<br>
Maybe it is confusing because the surfcolor command is not connected to the settings in the Surface Color dialog. The electrostatic potential file is actually one type of volume data, so I'm not sure what you mean when you say the surface is colored by volume data, not by electrostatic potential.<br>
<br>
For Surface Color, the only difference in treatment of electrostatic potential and other volume data is the default dialog settings, and these are not connected to the command.<br>
<br>
If using the scolor command to color by electrostatic potential, you will probably want to use the "offset 1.4" option,<br>
<<a href="http://plato.cgl.ucsf.edu/chimera/docs/UsersGuide/midas/scolor.html#volume" target="_blank">http://plato.cgl.ucsf.edu/chimera/docs/UsersGuide/midas/scolor.html#volume</a>><br>
<br>
which corresponds to the "surface offset" option in the Surface Color dialog when it is set to show electrostatic potential. There should not be any need to use the dialog when you are using the command.<br>
<br>
I hope this helps,<br>
Elaine<br>
----------<br>
Elaine C. Meng, Ph.D.<br>
UCSF Computer Graphics Lab (Chimera team) and Babbitt Lab<br>
Department of Pharmaceutical Chemistry<br>
University of California, San Francisco<br>
<div><div></div><div class="h5"><br>
On Sep 20, 2011, at 12:32 AM, matheus froeyen wrote:<br>
<br>
><br>
> Hi<br>
> I try to show the electrostatic potential calculated by apbs and written to a pot.dx file.<br>
> This works fine when using the mouse / menus.<br>
><br>
> However I try to do this also using the command line interface<br>
> because I need to repeat it many times.<br>
><br>
> $ chimera chimera.cmd<br>
><br>
> $ cat chimera.cmd:<br>
><br>
> open prod30.pdb<br>
><br>
> ~ribbon :<br>
> ~fillring :<br>
> surface :<br>
><br>
> open pot.dx<br>
> ~scolor #0<br>
> scolor #0 volume #1 cmap rainbow<br>
> scolor #0 volume #1 cmap -15,red:-5,yellow:0,green:5,cyan:15,blue<br>
><br>
> I don't get an error but the surface is colored by volume data, not by electrostatic potential.<br>
> Also the popup window "Surface Color" is not updated for the selected colors.<br>
><br>
> In the surface color popup I need to select color surface "MSMS surface" again,<br>
> change "volume data value" to "electrostatic potential"<br>
> and then push the button "Color". Then I get what I want, but unfortunately using the mouse again.<br>
><br>
> This should be done by the script too, I guess?<br>
><br>
> I m using the last stable chimera 64 version for unix on redhat.<br>
><br>
> best regards<br>
> mathy<br>
<br>
</div></div></blockquote></div><br></div>