<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Shubham,<div class=""><span class="Apple-tab-span" style="white-space:pre">  </span>Well, you can still control it, but it's an uglier process.  The information about which tools autostart, where they should be positioned/sized, <i class="">etc.</i><span style="font-style: normal;" class=""> is in a configuration file.  You would first have to execute:</span></div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>path_chimeraX --nogui --cmd "info path user unversioned config" --exit</div><div class=""><br class=""></div><div class="">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:</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre">       </span>user unversioned config directory: /Users/pett/Library/Application Support/ChimeraX</div><div class=""><br class=""></div><div class="">In that folder is a file named ui-1 that contains the configuration information for the main ChimeraX UI.</div><div class=""><span class="Apple-tab-span" style="white-space:pre">     </span>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.</div><div class=""><br class=""></div><div class="">--Eric<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Jun 3, 2022, at 11:23 AM, Shubham Devesh Ramgoolam <<a href="mailto:sdramgoolam@uwaterloo.ca" class="">sdramgoolam@uwaterloo.ca</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">

<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" class="">

<div class="">
<div class="">Hi Eric, </div>
<div class="">Thank you for the reply. I appreciate it.</div>
<div class="">However, this is not for my personal use. </div>
<div class="">Regards, </div>
<div class="">Shubham</div>
<br class="">
<hr style="display:inline-block;width:98%" tabindex="-1" class="">
<div id="divRplyFwdMsg" dir="ltr" class=""><font face="Calibri, sans-serif" style="font-size:11pt" class=""><b class="">From:</b> Eric Pettersen <<a href="mailto:pett@cgl.ucsf.edu" class="">pett@cgl.ucsf.edu</a>><br class="">
<b class="">Sent:</b> June 3, 2022 12:31 PM<br class="">
<b class="">To:</b> Shubham Devesh Ramgoolam <<a href="mailto:sdramgoolam@uwaterloo.ca" class="">sdramgoolam@uwaterloo.ca</a>><br class="">
<b class="">Cc:</b> <a href="mailto:chimerax-users@cgl.ucsf.edu" class="">chimerax-users@cgl.ucsf.edu</a> <<a href="mailto:chimerax-users@cgl.ucsf.edu" class="">chimerax-users@cgl.ucsf.edu</a>><br class="">
<b class="">Subject:</b> Re: [chimerax-users] Docking window for html viewer automacially</font>
<div class=""> </div>
</div>
<div class="" style="word-wrap:break-word; line-break:after-white-space">Hi Shubham,
<div class=""><span class="x_Apple-tab-span" style="white-space:pre"></span>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".</div>
<div class=""><br class="">
</div>
<div class="">
<div class="">--Eric</div>
<div class=""><br class="">
</div>
<div class=""><span class="x_Apple-tab-span" style="white-space:pre"></span>Eric Pettersen</div>
<div class=""><span class="x_Apple-tab-span" style="white-space:pre"></span>UCSF Computer Graphics Lab</div>
</div>
<div class="">
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">On Jun 3, 2022, at 3:48 AM, Shubham Devesh Ramgoolam via ChimeraX-users <<a href="mailto:chimerax-users@cgl.ucsf.edu" class="">chimerax-users@cgl.ucsf.edu</a>> wrote:</div>
<br class="x_Apple-interchange-newline">
<div class="">
<div class="">
<div class="">Hi Tom,</div>
<div class="">Thank you for the reply. I appreciate it.</div>
Shubham.
<hr tabindex="-1" class="" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr" class=""><font face="Calibri, sans-serif" class="" style="font-size:11pt"><b class="">From:</b> Tom Goddard <<a href="mailto:goddard@sonic.net" class="">goddard@sonic.net</a>><br class="">
<b class="">Sent:</b> June 3, 2022 4:03 AM<br class="">
<b class="">To:</b> Shubham Devesh Ramgoolam <<a href="mailto:sdramgoolam@uwaterloo.ca" class="">sdramgoolam@uwaterloo.ca</a>><br class="">
<b class="">Cc:</b> <a href="mailto:chimerax-users@cgl.ucsf.edu" class="">chimerax-users@cgl.ucsf.edu</a> <<a href="mailto:chimerax-users@cgl.ucsf.edu" class="">chimerax-users@cgl.ucsf.edu</a>><br class="">
<b class="">Subject:</b> Re: [chimerax-users] Docking window for html viewer automacially</font>
<div class=""> </div>
</div>
<div class="" style="word-wrap:break-word; line-break:after-white-space">
<div class="">Hi Shubham,</div>
<div class=""><br class="">
</div>
The ChimeraX command line --notools option will startup without the log, command line, toolbar. 
<div class=""><br class="">
</div>
<div class=""><span class="x_x_Apple-tab-span" style="white-space:pre"></span><a href="https://www.cgl.ucsf.edu/chimerax/docs/devel/apps/ChimeraX/ChimeraX.html" class="">https://www.cgl.ucsf.edu/chimerax/docs/devel/apps/ChimeraX/ChimeraX.html</a></div>
<div class=""><br class="">
</div>
<div class="">I don't know of any option or command to tell it to dock a tool.  There is a tool show/hide commmand</div>
<div class=""><br class="">
</div>
<div class=""><span class="x_x_Apple-tab-span" style="white-space:pre"></span><a href="https://www.cgl.ucsf.edu/chimerax/docs/user/commands/ui.html" class="">https://www.cgl.ucsf.edu/chimerax/docs/user/commands/ui.html</a><br class="">
<div class=""><br class="">
</div>
<div class="">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.</div>
<div class=""><br class="">
</div>
<div class=""><span class="x_x_Apple-tab-span" style="white-space:pre"></span>Tom</div>
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">On Jun 2, 2022, at 12:16 PM, Shubham Devesh Ramgoolam via ChimeraX-users <<a href="mailto:chimerax-users@cgl.ucsf.edu" class="">chimerax-users@cgl.ucsf.edu</a>> wrote:</div>
<br class="x_x_Apple-interchange-newline">
<div class="">
<div class="x_x_WordSection1" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<div class="" style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif">
Hi all,</div>
<div class="" style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif">
I hope you are doing well.</div>
<div class="" style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif">
 </div>
<div class="" style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif">
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])</div>
<div class="" style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif">
 </div>
<div class="" style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif">
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?</div>
<div class="" style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif">
 </div>
<div class="" style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif">
Regards,</div>
<div class="" style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif">
Shubham</div>
<div class="" style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif">
 </div>
<div class="" style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif">
Sent from<span class="x_x_Apple-converted-space"> </span><a href="https://go.microsoft.com/fwlink/?LinkId=550986" class="" style="color:blue; text-decoration:underline">Mail</a><span class="x_x_Apple-converted-space"> </span>for Windows</div>
<div class="" style="margin:0in; font-size:11pt; font-family:Calibri,sans-serif">
 </div>
</div>
<span class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; float:none; display:inline!important">_______________________________________________</span><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<span class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; float:none; display:inline!important">ChimeraX-users
 mailing list</span><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<a href="mailto:ChimeraX-users@cgl.ucsf.edu" class="" style="color:blue; text-decoration:underline; font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">ChimeraX-users@cgl.ucsf.edu</a><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<span class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none; float:none; display:inline!important">Manage
 subscription:</span><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; text-decoration:none">
<a href="https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users" class="" style="color:blue; text-decoration:underline; font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:400; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users</a></div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
_______________________________________________<br class="">
ChimeraX-users mailing list<br class="">
<a href="mailto:ChimeraX-users@cgl.ucsf.edu" class="">ChimeraX-users@cgl.ucsf.edu</a><br class="">
Manage subscription:<br class="">
<a href="https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users" class="">https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users</a><br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>

</div></blockquote></div><br class=""></div></body></html>