Next time, please use the Help / Report a Bug dialog to report an issue. It captures details about your setup that would help diagnose this.
That said, ChimeraX --offscreen is what you need if you want to
make images without the GUI and it only works on Linux at this
time. The only issue with offscreen rendering that I'm aware of
in the 1.0 release is that it doesn't work for labels. That has
been fixed in the daily builds.
-- Greg
Dear gurus,
I am trying to produce a series of figures on the fly with chimeraX, using a python script of the following format (this is only a simple demo):
test.py:
#!/usr/bin/env python3
import sys
from chimerax.core.commands import run
run(session, "open 1d66")
run(session, "color red")
run (session, "save fig1.png”)
==
This works like a charm with the gui, but without the gui it gives the following error, stops and no figure is produced, we tried both in Mac and linux. We are interest in the —nogui option:
.../MacOS/ChimeraX --script "test.py 1d66" —nogui
Executing: surface sel-residues enclose sel-residuesExecuting: transparency 0 ribbonsSet transparency of 542 residuesExecuting: ~selectNothing selectedNothing selectedExecuting: save fig1.jpgUnable to save images because OpenGL rendering is not available
So is this solvable? How?
We tried also with the —offscreen, no luck either.
Best,
Fabian
Fabian Glaser PhD
Bioinformatics Knowledge Unit - BKU
The Lorry I. Lokey Center for Life Sciences and Engineering
Technion - Israel Institute of Technology, Haifa, Israel
Web https://lokey.technion.ac.il/bioinformatic-knowledge-unit/
Tel +972 (0) 4 8293701
_______________________________________________ ChimeraX-users mailing list ChimeraX-users@cgl.ucsf.edu Manage subscription: https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users