[chimerax-users] Docking window for html viewer automacially
Eric Pettersen
pett at cgl.ucsf.edu
Fri Jun 3 17:00:12 PDT 2022
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
> On Jun 3, 2022, at 11:23 AM, Shubham Devesh Ramgoolam <sdramgoolam at uwaterloo.ca> wrote:
>
> Hi Eric,
> Thank you for the reply. I appreciate it.
> However, this is not for my personal use.
> Regards,
> Shubham
>
> From: Eric Pettersen <pett at cgl.ucsf.edu>
> Sent: June 3, 2022 12:31 PM
> To: Shubham Devesh Ramgoolam <sdramgoolam at uwaterloo.ca>
> Cc: chimerax-users at cgl.ucsf.edu <chimerax-users at cgl.ucsf.edu>
> Subject: Re: [chimerax-users] Docking window for html viewer automacially
>
> 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
>
>> On Jun 3, 2022, at 3:48 AM, Shubham Devesh Ramgoolam via ChimeraX-users <chimerax-users at cgl.ucsf.edu <mailto:chimerax-users at cgl.ucsf.edu>> wrote:
>>
>> Hi Tom,
>> Thank you for the reply. I appreciate it.
>> Shubham.
>> From: Tom Goddard <goddard at sonic.net <mailto:goddard at sonic.net>>
>> Sent: June 3, 2022 4:03 AM
>> To: Shubham Devesh Ramgoolam <sdramgoolam at uwaterloo.ca <mailto:sdramgoolam at uwaterloo.ca>>
>> Cc: chimerax-users at cgl.ucsf.edu <mailto:chimerax-users at cgl.ucsf.edu> <chimerax-users at cgl.ucsf.edu <mailto:chimerax-users at cgl.ucsf.edu>>
>> Subject: Re: [chimerax-users] Docking window for html viewer automacially
>>
>> Hi Shubham,
>>
>> The ChimeraX command line --notools option will startup without the log, command line, toolbar.
>>
>> https://www.cgl.ucsf.edu/chimerax/docs/devel/apps/ChimeraX/ChimeraX.html <https://www.cgl.ucsf.edu/chimerax/docs/devel/apps/ChimeraX/ChimeraX.html>
>>
>> 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 <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
>>
>>> On Jun 2, 2022, at 12:16 PM, Shubham Devesh Ramgoolam via ChimeraX-users <chimerax-users at cgl.ucsf.edu <mailto:chimerax-users at cgl.ucsf.edu>> wrote:
>>>
>>> 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 <https://go.microsoft.com/fwlink/?LinkId=550986> for Windows
>>>
>>> _______________________________________________
>>> ChimeraX-users mailing list
>>> ChimeraX-users at cgl.ucsf.edu <mailto:ChimeraX-users at cgl.ucsf.edu>
>>> Manage subscription:
>>> https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users <https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users>
>> _______________________________________________
>> ChimeraX-users mailing list
>> ChimeraX-users at cgl.ucsf.edu <mailto:ChimeraX-users at cgl.ucsf.edu>
>> Manage subscription:
>> https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.rbvi.ucsf.edu/pipermail/chimerax-users/attachments/20220603/84b59b82/attachment.html>
More information about the ChimeraX-users
mailing list