hi matthew,

for development you can use the pip of chimerax to install external tools, but pip is not directly accessible:
  ChimeraX -m pip install ...
or
  ${CHIMERAX}/bin/python3.5 ${CHIMERAX}/lib/python3.5/site-packages/pip install ...
CHIMERAX points to my installationpath on the harddisk and the package finally goes into the chimerax python tree.
the second method does not refresh the chimerax cache.

but maybe its better to put the dependency into the deployment of your tool
in setup.py (e.g. i need pyparsing by pip):
    install_requires=['pyparsing', 'ChimeraX-Core>=0.1'],

cheers,
wolfgang


On 01/14/2017 03:38 AM, Tom Goddard wrote:


On Jan 13, 2017, at 2:26 PM, Dougherty, Matthew T <matthewd@bcm.edu> wrote:

I have looked around at python midi packages.  
I think I can get around modifying the tk/qt event loops by polling the midi port.

I did a pip install of 'Mido' on my Mac laptop for testing using the OSx python environment. 

To install the Mido library into chimera, what do you recommend?

Matthew Dougherty
National Center for Macromolecular Imaging
Baylor College of Medicine
=================================================
=================================================

From: Tom Goddard <goddard@sonic.net>
Sent: Monday, November 21, 2016 12:53:04 PM
To: Dougherty, Matthew T
Cc: chimera-dev@cgl.ucsf.edu
Subject: Re: [chimera-dev] ChimeraX
 
***CAUTION:*** This email is not from a BCM Source. Only click links or open attachments you know are safe.
Hi Matt,

  The way to use MIDI in ChimeraX would be to include a MIDI / Qt5 library.  Qt5 is the window toolkit used by ChimeraX and it controls the receiving of events from devices.  I don’t know of an adequate Qt / MIDI library exists.  Really we would want PyQt5 / MIDI since all Qt in ChimeraX is done in Python.  The top Qt / MIDI hit is the QMidi library


which apparently only handles output of MIDI events, and it sounds like you are primarily interested in input of MIDI events to ChimeraX.

  We welcome any recommendations on what PyQt library could handle incoming MIDI events.  My quick web search turned up nothing.

Tom



On Nov 18, 2016, at 9:47 AM, Dougherty, Matthew T wrote:

Many of the USB devices I have been looking at for control surfaces are midi-centric, primarily coming out of the music industry.

For simple devices, not going the midi-route is usually straight forward, although can get complex supporting cross-platform. 

For complex devices such as DS1, midi appears to be the best method for dial boxes.  There is also economical advantages and an ongoing evolution of such devices.

 It also allows one to take advantage of manufacturer software in configuring baseline operational conditions (setting dial colors, ranges, toggling action of buttons).


We have talked about midi in the event loop before.  At the time it was not clear how/if this could work under chimeraX.

Any further ideas?




Matthew Dougherty
National Center for Macromolecular Imaging
Baylor College of Medicine
=================================================
=================================================
_______________________________________________
Chimera-dev mailing list
Chimera-dev@cgl.ucsf.edu
http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-dev



_______________________________________________
Chimera-dev mailing list
Chimera-dev@cgl.ucsf.edu
http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-dev


-- 
Universitätsklinikum Hamburg-Eppendorf (UKE)
@ Centre for Structral Systems Biology (CSSB)
@ Institute of Molecular Biotechnology (IMBA)
Dr. Bohr-Gasse 3-7 (Room 6.14)
1030 Vienna, Austria
Tel.: +43 (1) 790 44-4649
Email: w.lugmayr@uke.de
http://www.cssb-hamburg.de/


Universitätsklinikum Hamburg-Eppendorf; Körperschaft des öffentlichen Rechts; Gerichtsstand: Hamburg | www.uke.de
Vorstandsmitglieder: Prof. Dr. Burkhard Göke (Vorsitzender), Prof. Dr. Dr. Uwe Koch-Gromus, Joachim Prölß, Rainer Schoppik


SAVE PAPER - THINK BEFORE PRINTING