[chimerax-users] Save ribbons and surfaces with minimal amount of vertices/faces

Tom Goddard goddard at sonic.net
Mon Dec 13 10:53:54 PST 2021


This tutorial on exporting GLTF from ChimeraX has a section talking about how to reduce the number of triangles

	https://www.rbvi.ucsf.edu/chimerax/data/texture-may2021/export_3d.html <https://www.rbvi.ucsf.edu/chimerax/data/texture-may2021/export_3d.html>

The graphics quality command ribbonDivisions and ribbonSides are probably what you want.

	graphics quality ribbonDivisions 2 ribbonSides 4
  Tom


> On Dec 12, 2021, at 2:35 AM, Sarah Piper via ChimeraX-users <chimerax-users at cgl.ucsf.edu> wrote:
> 
> Hi ChimeraX team and others,
> I got a bit of an unusual question and am interested to see whether it is possible!
> 
> 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.  
> 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.
> 
> 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).
> And if so, would this be also applicable for surfaces, to reduce the numbers of vertices/faces that are exported?
> 
> 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: 
> 
> cmd.set_view([ 1.0,   0.0,   0.0,
>                0.0,   1.0,   0.0,
>                0.0,   0.0,   1.0,
>                0.0,   0.0,   0.0,
>                0.0,   0.0,   0.0,
>               40.0, 100.0, -20.0])
> 
> 
> Sorry for these unusual question but looking forward to hearing back from anyone who might have any suggestions!
> 
> Cheers,
> 
> Sarah
> 
> 
> _______________________________________________
> ChimeraX-users mailing list
> ChimeraX-users at cgl.ucsf.edu
> Manage subscription:
> https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimerax-users/attachments/20211213/15fa28b6/attachment-0001.html>


More information about the ChimeraX-users mailing list