Hi Yang,
Sorry, we have no direct support for that.  You could write your own Python-based preset that looks at session.ui.main_window (which is a QMainWindow instance), uses findChildren() to get the QDockWidget instances, and resizes them based on their windowTitle attribute.  Hacky, but might work.

--Eric

On May 2, 2024, at 4:27 PM, leeyang+chimerax--- via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:

Hi Eric,

I see. For ease of windows management, I have most of my tools docked. However, resizing the monolithic window often results in changes to the sizes of tool/button panels as ChimeraX maintains their relative proportions.

I was wondering if I could put together a set of alias-ed presets that would resize and arrange these elements to match the common viewport sizes I tend to use, e.g. to pair better with different monitor setups, or for ease of returning to a set state having resized away for whatever reason. I've just been tweaking my presets for (old) COOT and was inspired to see if I could do the same with my ChimeraX setup.

No worries if no such mechanism exists. I can well appreciate the complexity involved in refactoring.

Cheers,
Yang
_______________________________________________
ChimeraX-users mailing list -- chimerax-users@cgl.ucsf.edu
To unsubscribe send an email to chimerax-users-leave@cgl.ucsf.edu
Archives: https://mail.cgl.ucsf.edu/mailman/archives/list/chimerax-users@cgl.ucsf.edu/