Hi Oli,
A test of a non-existent attribute is always "false" in ChimeraX, and volume/surface models do not have a num_residues attribute.  What you can do is use just ##num_residues (does the num_residues attribute exist?) for atomic models and ##~num_residues (...not exist...) for non-atomic models.

--Eric

On Aug 29, 2023, at 9:48 AM, Oliver Clarke via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:

Thanks Eric - just tested and it is definitely faster! Surprisingly, ##num_residues=0 does not work for selecting volume/surface models - should it?

Cheers
Oli

On Aug 29, 2023, at 12:40 PM, Eric Pettersen <pett@cgl.ucsf.edu> wrote:

##num_residues>0 

_______________________________________________
ChimeraX-users mailing list -- chimerax-users@cgl.ucsf.edu
To unsubscribe send an email to chimerax-users-leave@cgl.ucsf.edu
Archives: https://mail.cgl.ucsf.edu/mailman/archives/list/chimerax-users@cgl.ucsf.edu/