Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#2306 closed defect (fixed)

weird initial model placement if 2d labels created first

Reported by: Elaine Meng Owned by: Tom Goddard
Priority: moderate Milestone:
Component: Scenes/Animation Version:
Keywords: Cc: pett
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

If I start ChimeraX then use these commands in this order:

2d text 'FGFR1 kinase domain' xpos .15 ypos .9 size 28
open 3gqi

... the atomic model is placed out of view. If I use the commands in the other order, it is centered as expected. Also if I then close session and re-execute in the other order (label first) the atomic model now appears in the center as expected. It is only when I do it the label-first way after starting ChimeraX that the atomic model is misplaced. If I close session (without quitting) and do it label-first again, the model is again misplaced. It is only after opening atomic-first once that breaks the "spell" ... some kind of initialization issue?

It's not unusual for me to create the title in a script before opening the structures. Maybe other people don't, but I'm guessing this might not be too hard to fix.

Attachments (1)

Screen Shot 2019-08-15 at 10.08.41 AM.png (300.9 KB ) - added by Elaine Meng 6 years ago.
Added by email2trac

Download all attachments as: .zip

Change History (4)

comment:1 by Tom Goddard, 6 years ago

Resolution: fixed
Status: assignedclosed

Fixed.

Camera view was only set when first model opened. If a 2D label was the first model and it had no scene bounds, then the camera view was not set. New rule is that camera view is set when a first model is added that has scene has bounds.

in reply to:  2 ; comment:2 by Elaine Meng, 6 years ago

Possibly as a side effect of this fix (?) my 2dlabels example image session now has the structure mis-positioned. 

Session: http://www.rbvi.ucsf.edu/chimerax/gallery_samples/prc.cxs

Left: current daily build,  right: ChimeraX 0.9

Added by email2trac

by Elaine Meng, 6 years ago

Added by email2trac

comment:3 by Tom Goddard, 6 years ago

Yep. The initial camera view was incorrectly being set after a session restore. Fixed now.

Note: See TracTickets for help on using tickets.