[chimerax-users] clickable commands

Elaine Meng meng at cgl.ucsf.edu
Fri Sep 16 08:41:51 PDT 2022


Hi Krishnan,
You would write the HTML in a text editor of your choice.   

>From my previous reply:
<https://www.rbvi.ucsf.edu/pipermail/chimerax-users/2022-September/004315.html>

> ...Then in the HTML with special execution links, you could execute command "open blah.cxc" or even individual commands (or semicolon-conjoined small sets of commands).  This mechanism is explained here:
> <https://rbvi.ucsf.edu/chimerax/docs/user/tools/helpviewer.html>
> 
> ....and the Quick Start Guide and some of the other tutorials exemplify this approach for individual/few commands per link:
> <https://www.rbvi.ucsf.edu/chimerax/docs/quickstart/index.html>
> <https://www.rbvi.ucsf.edu/chimerax/docs/user/tutorials/binding-sites.html>
> ...etc...


See that first link above for how to encode execution links.  You can also "save source" of any of the tutorials with such links as examples of HTML with the special links.

You can also save the Log (which shows past commands one by one) as HTML with executable links, although I doubt that is what you want.  Your commands would probably instead be "open something.cxc" to execute a whole script, and you wouldn't want the other stuff that appears in the Log.  But anyway, how to do it:

(1) first use the Log context menu (right-click or Ctrl-click depending on type of computer) and choose "Executable Command Links"
<https://rbvi.ucsf.edu/chimerax/docs/user/tools/log.html>
(2) use the Log context menu again and choose "Save As..."  (or use command "log save")
<https://rbvi.ucsf.edu/chimerax/docs/user/commands/log.html>

I hope this helps,
Elaine
-----
Elaine C. Meng, Ph.D.                       
UCSF Chimera(X) team
Department of Pharmaceutical Chemistry
University of California, San Francisco

> On Sep 16, 2022, at 6:54 AM, Krishnan Raman via ChimeraX-users <chimerax-users at cgl.ucsf.edu> wrote:
> 
> How  do I  make an html file for chimerax with clickable(executable) commands?
>  
>  
> Krishnan Raman 
> Executive Director, Structural Biology
> BioCryst Pharmaceuticals
>  
> 
> 
> 
> CONFIDENTIALITY NOTICE 
> 
> This email, including any attachments, may contain confidential or legally privileged information that is intended only for the individual or entity to whom it is addressed. If you are not the intended recipient, please be advised that any dissemination, distribution or copying of this email and any attachment is strictly prohibited. If you have received this email in error, please reply to the sender so that BioCryst Pharmaceuticals, Inc. can take corrective measures and then permanently delete this email and any attachment, including any printed copies. Thank you.
> 
> _______________________________________________
> ChimeraX-users mailing list
> ChimeraX-users at cgl.ucsf.edu
> Manage subscription:
> https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users




More information about the ChimeraX-users mailing list