
Is there a command to be able to modify notes on the model panel? If not, it would a useful addition when creating a command file to load in & color datasets.

Hi Matt, Although there isn't a *specific* command, the general attribute-setting command setattr can be used to assign the "note" attribute of molecule and molecular surface models. Other models also have this attribute, but currently the setattr command will only work for these two types of models (m and s in the following): setattr m note "my molecule" #0 setattr s note "this is the molecular surface" #0 Another issue, somewhat of a bug, is that these commands do not trigger the Model Panel to update itself. Instead you have to use the commands before the Model Panel is shown. If you try to add or change a note via the setattr command after the Model Panel is shown, nothing will happen. I hope this helps, Elaine ----- Elaine C. Meng, Ph.D. UCSF Computer Graphics Lab (Chimera team) and Babbitt Lab Department of Pharmaceutical Chemistry University of California, San Francisco On Jul 29, 2010, at 3:59 PM, Dougherty, Matthew T wrote:
Is there a command to be able to modify notes on the model panel? If not, it would a useful addition when creating a command file to load in & color datasets.

On Jul 31, 2010, at 9:29 AM, Elaine Meng wrote:
Hi Matt, Although there isn't a *specific* command, the general attribute- setting command setattr can be used to assign the "note" attribute of molecule and molecular surface models. Other models also have this attribute, but currently the setattr command will only work for these two types of models (m and s in the following):
setattr m note "my molecule" #0 setattr s note "this is the molecular surface" #0
Another issue, somewhat of a bug, is that these commands do not trigger the Model Panel to update itself. Instead you have to use the commands before the Model Panel is shown. If you try to add or change a note via the setattr command after the Model Panel is shown, nothing will happen.
The various problems noted in the above are addressed in the next daily build: 1) Setting the "note" attribute immediately updates the model panel. 2) "setattr M" will set the attribute in all models (as opposed to "setattr m" or "setattr s" for molecule and surface models respectively). --Eric Eric Pettersen UCSF Computer Graphics Lab http://www.cgl.ucsf.edu

---------- Elaine C. Meng, Ph.D. UCSF Computer Graphics Lab (Chimera team) and Babbitt Lab Department of Pharmaceutical Chemistry University of California, San Francisco Just a clarification that although the contents of the Note column now update correctly, it might still be necessary to use the "Configure..." button in Model Panel to show that column. If the notes were added before the Model Panel was started, however, the Note column will be there automatically. Elaine On Aug 2, 2010, at 5:02 PM, Eric Pettersen wrote:
On Jul 31, 2010, at 9:29 AM, Elaine Meng wrote:
Hi Matt, Although there isn't a *specific* command, the general attribute-setting command setattr can be used to assign the "note" attribute of molecule and molecular surface models. Other models also have this attribute, but currently the setattr command will only work for these two types of models (m and s in the following):
setattr m note "my molecule" #0 setattr s note "this is the molecular surface" #0
Another issue, somewhat of a bug, is that these commands do not trigger the Model Panel to update itself. Instead you have to use the commands before the Model Panel is shown. If you try to add or change a note via the setattr command after the Model Panel is shown, nothing will happen.
The various problems noted in the above are addressed in the next daily build:
1) Setting the "note" attribute immediately updates the model panel.
2) "setattr M" will set the attribute in all models (as opposed to "setattr m" or "setattr s" for molecule and surface models respectively).
--Eric
participants (3)
-
Dougherty, Matthew T
-
Elaine Meng
-
Eric Pettersen