Opened 6 years ago
Closed 6 years ago
#2298 closed defect (fixed)
2dlabels fading broken
Reported by: | Elaine Meng | Owned by: | pett |
---|---|---|---|
Priority: | moderate | Milestone: | |
Component: | Scenes/Animation | Version: | |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Notify when closed: | Platform: | all | |
Project: | ChimeraX |
Description
2dlabels text start xpos .2 ypos .2
2dlabels #1 size 40 color red frames 80
2dlabels #1 visibility false frames 80
Traceback (most recent call last):
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/chimerax/core/triggerset.py", line 130, in invoke
return self._func(self._name, data)
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/chimerax/core/commands/motion.py", line 38, in call
self.func(self.session, f)
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/chimerax/label/label2d.py", line 217, in frame_cb
self.label.color[-1] = self.label.color.dtype.type(self.color1[-1] * (1 - fraction))
AttributeError: '_InterpolateLabel' object has no attribute 'color1'
Error processing trigger "new frame": '_InterpolateLabel' object has no attribute 'color1':
AttributeError: '_InterpolateLabel' object has no attribute 'color1'
File "/Users/chimera/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/chimerax/label/label2d.py", line 217, in frame_cb
self.label.color[-1] = self.label.color.dtype.type(self.color1[-1] * (1 - fraction))
See log for complete Python traceback.
Change History (4)
comment:1 by , 6 years ago
comment:2 by , 6 years ago
Owner: | changed from | to
---|---|
Priority: | major → moderate |
Eric added the 2d labels frames argument support.
comment:3 by , 6 years ago
Status: | assigned → accepted |
---|
comment:4 by , 6 years ago
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
It works to just set visibility false without a frames argument, but then "visibility true" does not turn the label back on. I don't know if that's related or a separate problem.