<div dir="ltr">Hello Elaine,<div>Thanks for the response! Okay, I didn't know about the distinction between undisplayed atoms and those hidden by clipping; I was just talking about the latter. I was intending to export the scene in x3d or OBJ format rather than write a PDB, but your second trick is very useful! Just to check, there's no way to implement it from the command line? It isn't super-important if not, just wondering.</div><div><br></div><div>Thanks again!</div><div>Max</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 31, 2016 at 8:57 PM, Elaine Meng <span dir="ltr"><<a href="mailto:meng@cgl.ucsf.edu" target="_blank">meng@cgl.ucsf.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Max,<br>
There is a distinction between undisplayed and hidden by clipping, and also it matters whether you are trying to save atomic coordinates or something else, and in what format.<br>
<br>
I can speak to the saving of atomic coordinates in PDB format, and in that case:<br>
<br>
(1) if atoms are actually undisplayed (as opposed to suppressed by ribbon or hidden by clipping), you can specify them on the command line, for example to delete them: delete ~ @/display<br>
There is also an option in File… Save PDB to “save displayed atoms only” and a corresponding option to the “write” command.<br>
<br>
(2) here’s a trick for specifying only the atoms that are not hidden by clipping, but it requires interactive use: with the clipping in effect, use Ctrl-drag to “box-select” everything that is visible. Then if you turn off clipping it will still only have the previously unclipped stuff selected. Be aware that selecting a ribbon segment in this way selects all atoms in the corresponding residue(s), even if they were or would be hidden by the clipping plane. You can use “sel” in the command line to specify the selection, or “~sel” to specify what is not selected (or invert selection). For example, if you’d selected all the unclipped parts, you could delete the remaining atoms with command: delete ~sel<br>
<br>
The above are atomspecs in that they work in the command line. I’m guessing by “the usual atom-spec approach” you meant using residue numbers and atom names.<br>
I hope this helps,<br>
Elaine<br>
-----<br>
Elaine C. Meng, Ph.D.<br>
UCSF Computer Graphics Lab (Chimera team) and Babbitt Lab<br>
Department of Pharmaceutical Chemistry<br>
University of California, San Francisco<br>
<div class="HOEnZb"><div class="h5"><br>
On Aug 31, 2016, at 9:50 AM, max taylordavies <<a href="mailto:maxtaylordavies@gmail.com">maxtaylordavies@gmail.com</a>> wrote:<br>
<br>
> Hello all,<br>
><br>
> Is there any way to selectively delete the 'invisible' (undisplayed) parts of a structure and keep the visible parts without having to use the usual atom-spec approach? For example, if I run per-model clipping on a protein, is there any way to delete the part that has been rendered invisible by the clipping? If this isn't possible, is there a way to export only the visible/displayed components of a scene?<br>
><br>
> Many thanks in advance,<br>
> Max Taylor-Davies<br>
<br>
</div></div></blockquote></div><br></div>