cap color from command line

Hello, Thank you for all your previous answers. I would like to ask you whether there is a way to change the cap color not only from the Surface capping tool, but the command line as well and declare it maybe in a script (like for example coloring of the maps and models). Thanks, Jean-Paul

Hi Jean-Paul, There is currently no command to change surface cap color, show and hide caps, change cap style (mesh, filled) or degree of subdivision (effects quality when mapping multiple colors onto cap). There should be a command for this. I'll add it to the requested features list. The surface cap color can be changed with Python code. I've attached a Python file capcolor.py for this. You would use it in a normal Chimera command script with a command like runscript capcolor.py lightblue I also put the script on the Chimera Python scripts web page: http://plato.cgl.ucsf.edu/trac/chimera/wiki/Scripts Tom
Hello,
Thank you for all your previous answers. I would like to ask you whether there is a way to change the cap color not only from the Surface capping tool, but the command line as well and declare it maybe in a script (like for example coloring of the maps and models). Thanks,
Jean-Paul
# # Syntax: runscript capcolor.py lightblue # # where argument can be a color name or red,green,blue,opacity # numeric values in range 0 to 1, e.g. 0,1,0,1 for opaque green. # import Commands color = Commands.convertColor(arguments[0]) rgba = None if color is None else color.rgba() from SurfaceCap import surfcaps c = surfcaps.capper() c.set_cap_color(rgba) c.show_caps()
participants (2)
-
Jean-Paul Armache
-
Tom Goddard