[Chimera-users] 3D dashed pseudobond styles?

Eric Pettersen pett at cgl.ucsf.edu
Fri Nov 6 13:36:51 PST 2015


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 at 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 at 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 at 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 at cgl.ucsf.edu> wrote:
>>>> 
>>>> setattr p drawMode 1 sel
>> 
> 
> 
> _______________________________________________
> Chimera-users mailing list
> Chimera-users at cgl.ucsf.edu
> http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users
> 




More information about the Chimera-users mailing list