attentionbydesign / tymera

Custom Scripts
GNU General Public License v3.0
0 stars 0 forks source link

orientmdls camera focus #10

Closed attentionbydesign closed 2 months ago

attentionbydesign commented 2 months ago

The origin can sometimes be out of view, meaning all models will disappear although can be found after some panning and zooming.

Will need to further investigate how camera view is configured in IDLE. Would be nice to build in an equivalent of "focus" into the program, so that the models are centered in frame of the GUI window after shifting to the origin. Or perhaps forget about origin, and translate all models to whatever the center of view happens to be? But that would potentially mess up the coordinate system if saving any files without reference to any other open model (e.g., saving relative to BRIX file)

attentionbydesign commented 2 months ago

Simple fix for now is using the IDLE equivalent of standard accelerator for {View All} button in Tools > Viewing Controls > Side View:

import chimera
chimera.viewer.viewAll(resetCofrMethod=False)

Can create new issue for if this alters coordinate systems for saving PDBs later on.