<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>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.</p>
<p>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.<br>
</p>
<p> -- Greg<br>
</p>
<div class="moz-cite-prefix">On 8/1/2020 1:41 AM, Fabian Glaser
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:50681628-8A34-4447-A082-C8D1A65EA7BD@technion.ac.il">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<div dir="auto" style="word-wrap:break-word;
line-break:after-white-space" class="">
Dear gurus,
<div class=""><br class="">
</div>
<div class="">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):</div>
<div class=""><br class="">
</div>
<div class="">test.py:</div>
<div class=""><br class="">
</div>
<div class="">#!/usr/bin/env python3<br class="">
<br class="">
import sys<br class="">
from chimerax.core.commands import run<br class="">
<br class="">
run(session, "open 1d66")<br class="">
run(session, "color red")<br class="">
run (session, "save fig1.png”)<br class="">
<br class="">
==<br class="">
<br class="">
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:</div>
<div class=""><br class="">
</div>
<div class="">.../MacOS/ChimeraX --script "test.py 1d66" —nogui </div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">
<div style="margin: 0px; font-stretch: normal; font-size:
22px; line-height: normal; font-family: Menlo; color:
rgb(42, 175, 26); background-color: rgb(254, 250, 207);"
class="">
<span style="font-variant-ligatures: no-common-ligatures"
class="">Executing: surface sel-residues enclose
sel-residues</span></div>
<div style="margin: 0px; font-stretch: normal; font-size:
22px; line-height: normal; font-family: Menlo; color:
rgb(42, 175, 26); background-color: rgb(254, 250, 207);"
class="">
<span style="font-variant-ligatures: no-common-ligatures"
class="">Executing: transparency 0 ribbons</span></div>
<div style="margin: 0px; font-stretch: normal; font-size:
22px; line-height: normal; font-family: Menlo; color:
rgb(196, 15, 197); background-color: rgb(254, 250, 207);"
class="">
<span style="font-variant-ligatures: no-common-ligatures"
class="">Set transparency of 542 residues</span></div>
<div style="margin: 0px; font-stretch: normal; font-size:
22px; line-height: normal; font-family: Menlo; color:
rgb(42, 175, 26); background-color: rgb(254, 250, 207);"
class="">
<span style="font-variant-ligatures: no-common-ligatures"
class="">Executing: ~select</span></div>
<div style="margin: 0px; font-stretch: normal; font-size:
22px; line-height: normal; font-family: Menlo; color:
rgb(42, 175, 26); background-color: rgb(254, 250, 207);"
class="">
<span style="font-variant-ligatures: no-common-ligatures"
class="">Nothing selected</span></div>
<div style="margin: 0px; font-stretch: normal; font-size:
22px; line-height: normal; font-family: Menlo; color:
rgb(196, 15, 197); background-color: rgb(254, 250, 207);"
class="">
<span style="font-variant-ligatures: no-common-ligatures"
class="">Nothing selected</span></div>
<div style="margin: 0px; font-stretch: normal; font-size:
22px; line-height: normal; font-family: Menlo; color:
rgb(42, 175, 26); background-color: rgb(254, 250, 207);"
class="">
<span style="font-variant-ligatures: no-common-ligatures"
class="">Executing: save fig1.jpg</span></div>
<div style="margin: 0px; font-stretch: normal; font-size:
22px; line-height: normal; font-family: Menlo; color:
rgb(176, 33, 24); background-color: rgb(254, 250, 207);"
class="">
<span style="font-variant-ligatures: no-common-ligatures"
class="">Unable to save images because OpenGL rendering is
not available</span></div>
</div>
<div class=""><span style="font-variant-ligatures:
no-common-ligatures" class=""><br class="">
</span></div>
<div class=""><br class="">
</div>
<div class="">So is this solvable? How?</div>
<div class=""><br class="">
</div>
<div class="">We tried also with the —offscreen, no luck either.</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<div class="">
<div class="">
<div>Best,<br class="">
<br class="">
Fabian<br class="">
<br class="">
Fabian Glaser PhD<br class="">
<br class="">
Bioinformatics Knowledge Unit - BKU<br class="">
The Lorry I. Lokey Center for Life Sciences
and Engineering<br class="">
Technion - Israel Institute of Technology, Haifa, Israel<br
class="">
Web <a
href="https://lokey.technion.ac.il/bioinformatic-knowledge-unit/"
class="" moz-do-not-send="true">https://lokey.technion.ac.il/bioinformatic-knowledge-unit/</a><br
class="">
Tel +972 (0) 4 8293701</div>
</div>
<br class="">
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
ChimeraX-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ChimeraX-users@cgl.ucsf.edu">ChimeraX-users@cgl.ucsf.edu</a>
Manage subscription:
<a class="moz-txt-link-freetext" href="https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users">https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users</a>
</pre>
</blockquote>
</body>
</html>