Hi Jerome,
We don't have the chimerax --send option to open files in an already running ChimeraX, although we plan on adding it.
I have two ideas for how to do this in current ChimeraX. One is to use the remotecontrol command to tell ChimeraX to accept commands via http. In ChimeraX I enable this with command
remote rest start port 58123
Then http requests can run commands in ChimeraX. The http url can be entered in a web browser or from a script. From a script you could use curl or wget programs, for example,
You could make ChimeraX alway enable http requests by putting the "remote..." command in ChimeraX Settings/Preferences under the Startup tab "Execute these commands at startup".
The other idea I have is simpler but did not work in my test. ChimeraX accepts files dragged and dropped on the application. On macOS (and probably Linux and Windows) I should be able to run a shell command that says drop this file on ChimeraX. On Mac the shell command looks like
% open -a /Applications/ChimeraX.app ~/Downloads/ChimeraX/PDB/1a0m.cif
That worked for starting ChimeraX and showing the first file. But when I run it again to open a different it merely raised ChimeraX and did not open the new file. That is a bug. I've made a bug report for it. I don't know the equivalent commands on Linux and Windows and whether the would work.
Tom
Dear all,
I'm trying to transition from Chimera to ChimeraX, but my workflow relies on passing scripts to an open, with GUI, instance of Chimera using --send
https://www.cgl.ucsf.edu/chimera/docs/UsersGuide/options.html#send
I see that this is not described here:
Is that still available somehow in ChimeraX?
Thanks for any input.
Sincerely,
Jerome.
--
Jerome Mutterer
CNRS - Institut de biologie moléculaire des plantes
12, rue du Général Zimmer
67084 Strasbourg Cedex
_______________________________________________
ChimeraX-users mailing list
ChimeraX-users@cgl.ucsf.eduManage subscription:
https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users