Hi Anna,

Toggling an object's activity by clicking on the GUI uses the
underlying *disable
*command. If you already know the name of the color ramp, you can simply
type

*disable my_ramp*

otherwise, if you want to hide any and all color ramps, you can use an
API-only command (which is also submittable via PyMOL's command-line):

*for ramp in cmd.get_names_of_type("object:ramp"): cmd.disable(ramp)*

Hope this helps,
Jarrett J.

On Tue, Nov 28, 2023 at 10:39 AM Anna Elmanova <anna.elman...@uni-jena.de>
wrote:

> Dear colleagues,
>
> I am using Pymol electrostatic potential to surface mapping quite often.
> But I have the issue that if I use command line mode, I always get the
> colorbar. I would prefer to use custom colorbar, which I can make e.g.
> in photoshop, but to hide the colorbar by default. Whenever I try to do
> so, I lose the potentials on the surface also. Can this be resolved? I
> would be grateful for help. In the GUI I can just turn off the bar, but
> there is no log message for the command. I need to hide it from the
> command line, therefore I am asking..
>
> Thank you for suggestions.
>
> --
> Best regards,
> Anna Elmanova
>
>
> PhD student at Leibniz-Institut für Photonische Technologien e.V.
> (Leibniz-IPHT) and Friedrich Schiller Universität Jena
>
>
> +49 3641 948359
> Technische Optik Gebäude (Lessingstraße 8)
> Raum 229
>
>
>
> _______________________________________________
> PyMOL-users mailing list
> Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net
> Unsubscribe:
> https://sourceforge.net/projects/pymol/lists/pymol-users/unsubscribe



-- 

*Jarrett Johnson* | Senior Developer, PyMOL
_______________________________________________
PyMOL-users mailing list
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net
Unsubscribe: 
https://sourceforge.net/projects/pymol/lists/pymol-users/unsubscribe

Reply via email to