
That would work. Incidentally, here is a mockup of the kind of thing I’m thinking about with regards to the creation of labels for stereo pairs - the labels are not quite offset correctly and so forth but I think the idea could work, for example for labeling every nth C-alpha in a stereo trace of a new fold. Cheers, Oli
On Nov 6, 2015, at 4:36 PM, Eric Pettersen <pett@cgl.ucsf.edu> wrote:
I’m thinking something like a “create” keyword that defaults to false. If “create” is false, then setting a non-existent attribute is an error…
—Eric
On Nov 6, 2015, at 1:29 PM, Oliver Clarke <olibclarke@gmail.com> wrote:
I see the point - maybe not an error then, but a warning, something like “this attribute is not in the list of pre-defined attributes” or similar, in red text below the command line as per other chimera warnings?
Oliver
On Nov 6, 2015, at 4:27 PM, Elaine Meng <meng@cgl.ucsf.edu> wrote:
The rationale of silence was that you can use the command to create your own new attribute. But I’ve had the same thought occasionally. It depends what you’re trying to do! Best Elaine
On Nov 6, 2015, at 1:21 PM, Oliver Clarke <olibclarke@gmail.com> wrote:
Many thanks Elaine - I did do as you suggested initially, but I was typing drawmode, rather than drawMode, and Chimera attributes are case sensitive.
It would be helpful I think if Chimera threw an error or exception of some kind when a user tries to use setattr with a nonexistent attribute - as it is it seems to fail silently, and it is hard to figure out sometimes whether this is because the attribute does not exist, or the wrong scope was used , e.g. p vs a etc.
Cheers, Oliver.
On Nov 6, 2015, at 4:09 PM, Elaine Meng <meng@cgl.ucsf.edu> wrote:
setattr p drawMode 1 sel
_______________________________________________ Chimera-users mailing list Chimera-users@cgl.ucsf.edu http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users