Hi Shubham, Well, you can still control it, but it's an uglier process. The information about which tools autostart, where they should be positioned/sized, etc. is in a configuration file. You would first have to execute:
path_chimeraX --nogui --cmd "info path user unversioned config" --exit
and read the output to find the folder that the configuration is saved in. On my Mac, the second line of output of the above is:
user unversioned config directory: /Users/pett/Library/Application Support/ChimeraX
In that folder is a file named ui-1 that contains the configuration information for the main ChimeraX UI.
So what you would need to do is run ChimeraX by hand and do the things I outlined in my first reply to get ChimeraX's UI configured the way you want it for your script and then squirrel away a copy of the corresponding ui-1. Then, when your script wants to launch ChimeraX, copy the user's current ui-1 somewhere and copy your squirreled-away ui-1 in its place. When your script finishes, put the user's original ui-1 back.
--Eric
Hi Eric,
Thank you for the reply. I appreciate it.
However, this is not for my personal use.
Regards,
Shubham
Hi Shubham,
Is this for your own personal use (rather than something you will be giving to others to use)? For your own use, to prevent particular tools from starting up when ChimeraX starts up,
bring up a context menu over the tool (right mouse click) and uncheck "Start at ChimeraX Startup". To have a tool start docked or undocked and in a particular location, put the tool in that location and again use the context menu and choose "Save Tool Position".
--Eric
Eric Pettersen
UCSF Computer Graphics Lab
Hi Tom,
Thank you for the reply. I appreciate it.
Shubham.
Hi Shubham,
The ChimeraX command line --notools option will startup without the log, command line, toolbar.
I don't know of any option or command to tell it to dock a tool. There is a tool show/hide commmand
https://www.cgl.ucsf.edu/chimerax/docs/user/commands/ui.html
but it looks like docking is always done with the mouse. If there were a command to dock a tool you could use the "--cmd" startup option. It would probably look pretty ugly starting as the html viewer starts undocked and then immediately docks
itself.
Tom
Hi all,
I hope you are doing well.
I am using the following code to open chimeraX along with an HTML file when a condition is met: subprocess.call([path_chimeraX, path_html])
Now, in this scenario, is it possible include some codes(perhaps as arguments for subprocess?) that will dock the window for the HTML viewer automatically while also hiding the log and command line interface upon startup of chimeraX? Or should I use a different
approach?
Regards,
Shubham
Sent from
Mail for Windows
_______________________________________________
ChimeraX-users
mailing list
ChimeraX-users@cgl.ucsf.edu
Manage
subscription:
https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users
_______________________________________________
ChimeraX-users mailing list
ChimeraX-users@cgl.ucsf.edu
Manage subscription:
https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users