Hello,

By now I have been told by several people that the current lighting/materials in Coot 1.3.x is not to their taste.

Here is a script that provides a button that makes the graphics image more Old School.

Paul.


########################################################################

To unsubscribe from the COOT list, click the following link:
https://www.jiscmail.ac.uk/cgi-bin/WA-JISC.exe?SUBED1=COOT&A=1

This message was issued to members of www.jiscmail.ac.uk/COOT, a mailing list 
hosted by www.jiscmail.ac.uk, terms & conditions are available at 
https://www.jiscmail.ac.uk/policyandsecurity/
import gi
gi.require_version("Gtk", "4.0")
from gi.repository import Gtk
import coot
import coot_gui_api

import coot

def button_clicked_callback(arg):

    for imol in range(coot.get_number_of_molecules()):
        if coot.is_valid_model_molecule(imol):
            coot.set_model_material_specular(imol, 0.1, 64)
            coot.set_model_material_diffuse(imol, 0.2, 0.2, 0.2, 1.0)
            coot.set_model_material_ambient(imol, 0.4, 0.4, 0.4, 1.0)
        if coot.is_valid_map_molecule(imol):
            coot.set_map_material_diffuse(imol, 0.2, 0.2, 0.2, 1.0)
            coot.set_map_material_ambient(imol, 0.5, 0.5, 0.5, 1.0)

button = Gtk.Button(label="OldSchoolMats")
button.connect("clicked", button_clicked_callback)
coot_gui_api.main_toolbar().append(button)

Reply via email to