<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">This tutorial on exporting GLTF from ChimeraX has a section talking about how to reduce the number of triangles<div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre">       </span><a href="https://www.rbvi.ucsf.edu/chimerax/data/texture-may2021/export_3d.html" class="">https://www.rbvi.ucsf.edu/chimerax/data/texture-may2021/export_3d.html</a></div><div class=""><br class=""></div><div class="">The graphics quality command ribbonDivisions and ribbonSides are probably what you want.</div><div class=""><br class=""></div><div class=""><pre class=""><span class="Apple-tab-span" style="white-space:pre">        </span>graphics quality ribbonDivisions 2 ribbonSides 4</pre></div><div class="">  Tom</div><div class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Dec 12, 2021, at 2:35 AM, Sarah Piper via ChimeraX-users <<a href="mailto:chimerax-users@cgl.ucsf.edu" class="">chimerax-users@cgl.ucsf.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi ChimeraX team and others,<div class="">I got a bit of an unusual question and am interested to see whether it is possible!</div><div class=""><br class=""></div><div class="">I am trying to use a short helix in ribbon style from ChimeraX into Blender, and use it to create a 'skeleton' for animations. For this, it would be most useful to have as few vertices as possible for the helix (basically only the 'invisible' coordinates themselves as 'line', instead of having it as a 3D view/thick helix.  </div><div class="">When I export a helix even with a very thin ribbon style through the command line (e.g. width and thickness to 0.1), this is unfortunately still too thick and creates too many vertices/faces. Setting these values to 0 gives errors.</div><div class=""><br class=""></div><div class="">I have looked at the ribbon style editor in Chimera as well, and unfortunately the minimum settings are 0.05. Would it be possible to somehow set any of these parameters to 0 and save this as a file format suitable for 3D softwares (e.g. .glb)? Would it work through a python script potentially? (I'm not familiar with python in chimera yet but happy to learn more about this).</div><div class="">And if so, would this be also applicable for surfaces, to reduce the numbers of vertices/faces that are exported?</div><div class=""><br class=""></div><div class="">On another note, I was wondering whether it would be possible to set the chimaera scene 'world origin' to a particular coordinate set; I think in Pymol this is possible with resetting the camera view: </div><div class=""><br class=""></div><div class=""><pre class="gmail-highlight gmail-code" lang="python"><span lang="python" class="gmail-line" id="gmail-LC1"><span class="gmail-n">cmd</span><span class="gmail-p">.</span><span class="gmail-n">set_view</span><span class="gmail-p">([</span> <span class="gmail-mf">1.0</span><span class="gmail-p">,</span>   <span class="gmail-mf">0.0</span><span class="gmail-p">,</span>   <span class="gmail-mf">0.0</span><span class="gmail-p">,</span></span>
<span lang="python" class="gmail-line" id="gmail-LC2">               <span class="gmail-mf">0.0</span><span class="gmail-p">,</span>   <span class="gmail-mf">1.0</span><span class="gmail-p">,</span>   <span class="gmail-mf">0.0</span><span class="gmail-p">,</span></span>
<span lang="python" class="gmail-line" id="gmail-LC3">               <span class="gmail-mf">0.0</span><span class="gmail-p">,</span>   <span class="gmail-mf">0.0</span><span class="gmail-p">,</span>   <span class="gmail-mf">1.0</span><span class="gmail-p">,</span></span>
<span lang="python" class="gmail-line" id="gmail-LC4">               <span class="gmail-mf">0.0</span><span class="gmail-p">,</span>   <span class="gmail-mf">0.0</span><span class="gmail-p">,</span>   <span class="gmail-mf">0.0</span><span class="gmail-p">,</span></span>
<span lang="python" class="gmail-line" id="gmail-LC5">               <span class="gmail-mf">0.0</span><span class="gmail-p">,</span>   <span class="gmail-mf">0.0</span><span class="gmail-p">,</span>   <span class="gmail-mf">0.0</span><span class="gmail-p">,</span></span>
<span lang="python" class="gmail-line" id="gmail-LC6">              <span class="gmail-mf">40.0</span><span class="gmail-p">,</span> <span class="gmail-mf">100.0</span><span class="gmail-p">,</span> <span class="gmail-o">-</span><span class="gmail-mf">20.0</span><span class="gmail-p">])</span></span>
</pre></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Sorry for these unusual question but looking forward to hearing back from anyone who might have any suggestions!</div><div class=""><br class=""></div><div class="">Cheers,</div><div class=""><br class="">Sarah</div><div class=""><br class=""></div><div class=""><br class=""></div></div>
_______________________________________________<br class="">ChimeraX-users mailing list<br class=""><a href="mailto:ChimeraX-users@cgl.ucsf.edu" class="">ChimeraX-users@cgl.ucsf.edu</a><br class="">Manage subscription:<br class="">https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users<br class=""></div></blockquote></div><br class=""></div></body></html>