Opened 4 weeks ago
Closed 3 weeks ago
#19124 closed defect (fixed)
visible arrow & label become invisible when session restored
| Reported by: | Elaine Meng | Owned by: | Tom Goddard |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | Depiction | Version: | |
| Keywords: | Cc: | Eric Pettersen | |
| Blocked By: | Blocking: | ||
| Notify when closed: | Platform: | all | |
| Project: | ChimeraX |
Description
I run a script that fades out my label and arrow. Then in the model panel I turn their visibility back on, I can definitely see them, then I save a session. However, when I restore the session they are invisible again. Somehow the "invisible" tag gets saved when I save session even though I showed them before saving. Script and session attached.
Attachments (2)
Change History (6)
by , 4 weeks ago
| Attachment: | testlab.cxc added |
|---|
by , 4 weeks ago
| Attachment: | testlab.cxs added |
|---|
comment:1 by , 4 weeks ago
comment:2 by , 4 weeks ago
Strange. I can reproduce it. I save the label and arrow models as shown and the model panel indicates they are displayed and restore the session and they are not shown and the model panel shows they are not displayed. Will need to investigate. Need to finish mutation scores changes today, so may not look at this until tomorrow.
comment:3 by , 3 weeks ago
A simpler recipe that demonstrates this bug
2dlabel text hello visibility false
# Use model panel checkbutton to show label
save test.cxs
open test.cxs
# No label is shown and model panel shows it is hidden!
comment:4 by , 3 weeks ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Fixed.
Labels and arrows had an attribute "visibility" that did not get updated when you hide or show them using Model Panel. The visibility attribute is what is saved in sessions. I added code so this visibibility attribute follows the model display state.
tested in current daily build UCSF ChimeraX version: 1.11.dev202510120519 (2025-10-12)